How to run rails application cloned from github?

I recently setup a droplet using one-click setup with “Ubuntu Ruby on Rails on 14.04 (Postgres, Nginx, Unicorn)”. Now I want to cloned my rails application from github to run on digitalocean.

How do I go about this? What are the procedures?

I tried for two days now. It still won’t display my application index page when I spin up rails server that I cloned from Github. It keeps showing the default “Digitalcoean Rails” page. And I can’t access my site from the browser at port 3000.


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.

ok i figured it out

  1. make sure to create /home/index.html and point your route there before you push to git
  2. install git apt-get install git
  3. ssh to your digitalocean domain
  4. navigate to cd /home/rails
  5. delete folder rails
  6. clone your rails repo from github git clone YOUR_REMOTE_ADDRESS
  7. rename the downloaded repo to rails
  8. setup your db rake db:drop db:create db:migrate
  9. run rails server like so rails s --binding=YOUR_IP_ADDRESS

I was running rails s for the past few days wondering why it is just showing the default “digitalocean rails page”

anyways, i hope this could help someone in the future.