Closed scottohara closed 6 years ago
Turns out that heroku local
uses port 5000 for web processes unless a port is explicitly specified.
Fixed by adding -p 9393
to the web command.
There are still some funny issues though. Firstly, the Thin startup message, i.e.
== Shotgun/Thin on http://127.0.0.1:9393/
Thin web server (v1.7.0 codename Dunder Mifflin)
Maximum connections set to 1024
Listening on 127.0.0.1:9393, CTRL+C to stop
...doesn't appear until the first web request is handled (seems like the output is buffered until a request forces it to be flushed to stdout?)
Secondly, hitting CTRL-C kill the processes, but doesn't return to the prompt. Requires a second CTRL-C to get back to the prompt.
If/when we get this resolved, we should be able to remove the foreman
gem from Gemfile
and update README
instructions to refer to `heroku local instead
No longer seems to be an issue
When running
heroku local -f Procfile.dev
, thedb
process that starts couch doesn't return control, so theweb
process never starts (untilCTRL-C
, which kills thedb
process).Tried both:
and