Question

Ruby On Rails Where's my app?

I’m using ruby on rails one click installer

What I’ve done so far is

1.rvm use 2.0.0

2.rails new website

3.rails generate scaffold status name:string content:text

4.rake db:migrate

5.rails server

Goto my digital ocean I.P

http://165.233.62.89/statuses/

But I get message

"The page you were looking for doesn’t exist.

You may have mistyped the address or the page may have moved."

Where can I find my app I’ve just started please?

Thanks for your help


Submit an answer

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!

Sign In or Sign Up to Answer

These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.

Want to learn more? Join the DigitalOcean Community!

Join our DigitalOcean community of over a million developers for free! Get help and share knowledge in Q&A, subscribe to topics of interest, and get courses and tools that will help you grow as a developer and scale your project or business.

I take I need to change this line to my application folder. Is that right?

nano /home/unicorn/unicorn.conf

listen “127.0.0.1:8080” worker_processes 2 user “rails”

working_directory “/home/rails”

pid “/home/unicorn/pids/unicorn.pid” stderr_path “/home/unicorn/log/unicorn.log” stdout_path “/home/unicorn/log/unicorn.log”

listen “127.0.0.1:8080” worker_processes 2 user “rails”

working_directory “/home/rails/myfirstapp”

pid “/home/unicorn/pids/unicorn.pid” stderr_path “/home/unicorn/log/unicorn.log” stdout_path “/home/unicorn/log/unicorn.log”

*Then I went to

http://112.0.0.1:8080

But the page was blank?*

Are you saying that you are trying to view 127.0.0.1:8080 in your browser? If that’s the case, you probably won’t see anything, because you are trying to view a web page on your own machine. (See my other comment regarding 127.0.0.1/loopback address.)

Your Unicorn server should be listening on 127.0.0.1:8080. Once configuration is done and the application is running, view the site using your droplet’s IP address. You should see what you’re expecting to see, assuming that the Nginx proxy is configured correctly.

For future reference, publishing 127.0.0.1 is not a security risk. 127.0.0.1 is known as the loopback address, and is essentially just a self-referencing IP address. It is frequently used when communicating with another service on the same droplet, which is what is going on here - Nginx receives a external request on port 80 (the standard HTTP port) and sends that request on to Unicorn internally using port 8080.