Rails -v 4.1.1 Ruby -v 2.2.1
I have 2 rails applications on one AWS EC2 instance. One app, I am able to startup on Webrick with:
rails server
I am then able to access the application remotely at the following URL:
http://[public_ip]:3000
The second app, I have to provide the -b and -p options. Without the options accessing the application at http://[public_ip]:3000
gives me:
This webpage is not available
connection attempt to [public_ip] was rejected. The website may be down, or your network may not be properly configured.
The only server startup otions that works for the second app is:
rails s -b 0.0.0.0 -p 3000
I am then able to access the second app at http://[public_ip]:3000
. The second app is a brand new app I created on the server. The first app is code I checked out from an existing app.
How do I make the second app behave the same as the first app?