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.
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 withforeman
, 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 andforeman
continues running all services.