foreman
foreman copied to clipboard
Get "exited with code 0" error when using foreman in rails project on Mac
Hi folks, I got an error of "exited with code 0" when I want to delete a file using foreman in rails app. And the command is like: remove-file: sh -c 'rm app/file-name' But when I try to update the command like: remove-file: sh -c 'rm app/file-name && npm run start:dev' and the error is gone.
Could somebody tell me why? Thanks a lot.
@fantasydong Foreman stops all processes when any of them exit. Your first example command is short-lived, and Foreman stops everything when it exits; your second example command is long-lived and doesn't exit, so it doesn't trigger Foreman to stop.
@fantasydong is this still an issue?