#!/bin/bash # Start the Node.js server in the background node /usr/local/lw.comm-server/server & # Store the PID of the last background command (Node.js server) server_pid=$! #ONLY UNCOMMENT ONE OF THE FOLLOWING BROWSERS # Uncomment the next line to launch Chromium browser pointing to localhost:8000 chromium --app=http://localhost:8000/ --start-maximized # Uncomment the next line to launch Firefox browser pointing to localhost:8000 #firefox -new-window http://localhost:8000/ # Terminate the Node.js server kill $server_pid