How to configure Ruby on Rails app going from port 3000 to deployment?

  • Posted January 23, 2015

Hello All

I have been stuck in this process for a while now, so I have the project ready to and are able to run it in port 3000 (I need to do rails s every time)

My question is how do I move from visiting ip:3000 to simply visiting ip? (still figuring out the dns thing)

I have tried to restart the project and test with the default home page and only devise gem, and any changes I made to the index.html.erb will show up, but the pages I added in with devise will not be there.

There was a time I played with nginx to see if it’s its problem but changing what it listens to doesn’t seem to help?

Thank you


Submit an answer
You can type!ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!

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.

I ended up starting from a clean Ubuntu server and set it up by following the nginx and phusion passange tutorial.

I have this same problem. My devise isn’t working on my one 1-click ruby image either.

Well I started in one click install, so it comes with Nginx and Unicorn and I was trying to look for advice on fixing the problem by configuring the two.

Those tutorials are tutorials starting from a blank ubuntu droplet, is there a way to convert my current droplet to a blank one and keeping all the snapshots or I have to get a new droplets? Update:I’m rebuilding from image, but still would like to know how to go from one click install rails app to deployment though

There are a few ways you could accomplish this. Two of the most popular are using Passenger with Apache and setting up an Nginx reverse proxy in front of it. Check out these tutorials for a run down on both options: