Script bin/dev broken
hww opened this issue · comments
Valery (h2w) commented
In my case bin/dev
exit, but rails s
works
21:43:12 js.1 | Done in 0.22s.
21:43:12 web.1 | => Booting Puma
21:43:12 web.1 | => Rails 7.0.4.2 application starting in development
21:43:12 web.1 | => Run `bin/rails server --help` for more startup options
21:43:12 web.1 | Puma starting in single mode...
21:43:12 web.1 | * Puma version: 5.6.5 (ruby 3.2.0-p0) ("Birdie's Version")
21:43:12 web.1 | * Min threads: 5
21:43:12 web.1 | * Max threads: 5
21:43:12 web.1 | * Environment: development
21:43:12 web.1 | * PID: 332306
21:43:12 web.1 | * Listening on http://127.0.0.1:3000
21:43:12 web.1 | * Listening on http://[::1]:3000
21:43:12 web.1 | Use Ctrl-C to stop
21:43:12 js.1 | exited with code 0
21:43:12 system | sending SIGTERM to all processes
21:43:12 web.1 | - Gracefully stopping, waiting for requests to finish
21:43:12 web.1 | Exiting
21:43:12 web.1 | terminated by SIGTERM
21:43:12 css.1 | exited with code 1
Andrew Cowle commented
@hww I had the same issue setting up a new rails app, after some digging I found that esbuild 0.17.0 (https://yarnpkg.com/package/esbuild) removed the watch command. I just removed the --watch
options from the procfile and I don't get the exit.
Chris Oliver commented
Use the example config with esbuild 0.17+
https://github.com/excid3/esbuild-rails/blob/main/examples/esbuild.config.mjs