I want to start up my rails application I cloned from github.
I tried running ‘rails s’ and everything seems to be working ok as you can see below…
:/home/rails# rails s
=> Booting WEBrick
=> Rails 4.2.1 application starting in development on http://localhost:3000
=> Run `rails server -h` for more startup options
=> Ctrl-C to shutdown server
[2015-06-15 04:18:49] INFO WEBrick 1.3.1
[2015-06-15 04:18:49] INFO ruby 2.2.1 (2015-02-26) [x86_64-linux]
[2015-06-15 04:18:49] INFO WEBrick::HTTPServer#start: pid=26394 port=3000
However, when I go to the http://"MY_IP_ADDRESS":3000/ in my browser, It can’t be accessed.
I can only go to the root address which is http://"MY_IP_ADDRESS"/ but it would show me the default rails html page not my application.
I even tried replacing my cloned github app to /home/rails still no hope. still the default page.
Can anyone help?
This textbox defaults to using Markdown to format your answer.
You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!
ok i figured it out
I was running rails s for the past few days wondering why it is just showing the default “digitalocean rails page”
You need to run rails using rails server --binding=YOUR_IP_ADDRESS
anyways, i hope this could help someone in the future.
This comment has been deleted
Get paid to write technical tutorials and select a tech-focused charity to receive a matching donation.
Full documentation for every DigitalOcean product.
The Wave has everything you need to know about building a business, from raising funding to marketing your product.
Stay up to date by signing up for DigitalOcean’s Infrastructure as a Newsletter.
New accounts only. By submitting your email you agree to our Privacy Policy
Scale up as you grow — whether you're running one virtual machine or ten thousand.
Sign up and get $200 in credit for your first 60 days with DigitalOcean.*
*This promotional offer applies to new accounts only.