You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The following Procfile works properly with foreman 0.87.2, but fails to execute both processes when called with hivemind 1.1.0 as installed via Homebrew. Go reports itself as go version go1.18.1 darwin/amd64.
Procfile
yard: open -a Safari.app http://localhost: 8088
coverage: open -a Safari.app coverage/index.html
Failures from Hivemind
With foreman start, a PID is created for each browser process, and the relevant pages are opened in Safari. However, with hivemind ./Procfile the first process starts correctly even though hivemind thinks it has immediately exited. The second process (coverage) never runs, and reports:
This intuitively seems to be an issue with jobs that fork or share a parent process, since in actuality the YARD server (started separately by Guard in this case) continues to run, but hivemind seems to think that because open has exited it should not start or continue the other defined processes defined in the Procfile.
If there's a work-around, or if I've misunderstood the documentation, please let me know. Otherwise, this seems like a bug for anything that might spawn background processes or have non-interdependent processes that should not fail to start or continue to run simply because another named process within the Procfile did.
The text was updated successfully, but these errors were encountered:
@todd-a-jacobs I doubt that this issue is actual after 2 years, but you can use the -W flag of open. This flag makes open wait until the requested application is closed.
Summary
The following Procfile works properly with foreman 0.87.2, but fails to execute both processes when called with hivemind 1.1.0 as installed via Homebrew. Go reports itself as
go version go1.18.1 darwin/amd64
.Procfile
Failures from Hivemind
With
foreman start
, a PID is created for each browser process, and the relevant pages are opened in Safari. However, withhivemind ./Procfile
the first process starts correctly even though hivemind thinks it has immediately exited. The second process (coverage) never runs, and reports:This intuitively seems to be an issue with jobs that fork or share a parent process, since in actuality the YARD server (started separately by Guard in this case) continues to run, but hivemind seems to think that because
open
has exited it should not start or continue the other defined processes defined in the Procfile.If there's a work-around, or if I've misunderstood the documentation, please let me know. Otherwise, this seems like a bug for anything that might spawn background processes or have non-interdependent processes that should not fail to start or continue to run simply because another named process within the Procfile did.
The text was updated successfully, but these errors were encountered: