foreman icon indicating copy to clipboard operation
foreman copied to clipboard

Get "exited with code 0" error when using foreman in rails project on Mac

Open chandler-huang opened this issue 7 years ago • 2 comments

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.

chandler-huang avatar Jun 10 '17 16:06 chandler-huang

@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.

replaid avatar Jun 12 '18 19:06 replaid

@fantasydong is this still an issue?

andrewmcodes avatar Mar 18 '19 22:03 andrewmcodes