andrewn / neue-radio

Neue Radio: Prototype connected object using web technologies
10 stars 6 forks source link

Fix for MacOS Chrome not spawning new browser instance if already running #54

Closed andrewn closed 6 years ago

andrewn commented 6 years ago

On MacOS, if Chrome is already running when start-web-environment.sh script is executed, the manager page is opened in a new tab of the existing Chrome session, and the script exits immediately. When running in a Procfile with foreman, the script exiting causes all the other services to be terminated too.

Adding --user-data-dir=/tmp forces Chrome to start a new session separate from the currently running Chrome instance. The start script then doesn't exit, but instead displays logging information and foreman continues running all services.