I can run my rails app fine in developemnt using:
rails s
then going to localhost:3000
However, I need to test production and tried
rails s -e production
, however, when I go to localhost:3000, I see nothing happen in my rails server.
=> Booting Puma
=> Rails 5.2.3 application starting in production
=> Run `rails server -h` for more startup options
Set localhost 3000 as the default_url_option ----
Puma starting in single mode...
* Version 3.12.1 (ruby 2.6.3-p62), codename: Llamas in Pajamas
* Min threads: 5, max threads: 5
* Environment: production
* Listening on tcp://0.0.0.0:3000
Use Ctrl-C to stop
Why can't I access my production rails app? Is there any specific tutorial on how to run a production env on a local machine? I am using Mac OSX High Sierra.
rails s -e production -b 0.0.0.0
? – Josh Brody