How To Deploy A Rails Application From Github? - DigitalOcean

  • Blog
  • Docs
  • Get Support
  • Contact Sales
  • Tutorials
  • Questions
  • Product Docs
  • Cloud Chats
  • Search Community

Report this

What is the reason for this report?This undefined is spamThis undefined is offensiveThis undefined is off-topicThis undefined is otherSubmit<- Back to questionsQuestionHow to deploy a Rails application from Github?Posted on June 15, 2015DeploymentRuby on RailsGitlaohasongkramsu

By laohasongkramsu

Popular topics

I want to import my app from github to run on Digitalocean. I am currently running Ubuntu Ruby on Rails on 14.04 (Postgres, Nginx, Unicorn).

Step I took so far after setting up a new droplet…

  1. sudo apt-get update
  2. I installed git
  3. removed the folder “/home/rails” and everything inside
  4. cloned the app from Github to “/home/”
  5. renamed the cloned folder to “rails”
  6. I setup the locale environment
  7. configured postgresql user and password
  8. bundle install everything
  9. run “rails s”

run into the problem

“A server is already running. Check /home/rails/tmp/pids/server.pid.” after I tried “rails s”

Is this the correct way to do it? if not how exactly should I go about deploying my rails app from github?

Submit answer (2)Add a comment (2)

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 AnswerThese 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.0rattanakchearattanakcheaSeptember 5, 2015Show less

Sorry I don’t quite understand step 1. Can you explain more? create /home/index.html in app/view folder? how to point your route there?

Reply0laohasongkramsulaohasongkramsuJune 16, 2015Show less

ok i figured it out

  1. make sure to create /home/index.html as your first/index page 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 mv OLD_FOLDER NEW_FOLDER
  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”, it was because i kept running rails by using rails s …duh

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

Reply

Popular Topics

  1. AI/ML
  2. Ubuntu
  3. Linux Basics
  4. JavaScript
  5. Python
  6. MySQL
  7. Docker
  8. Kubernetes
  9. All tutorials
  10. Talk to an expert
  • All tutorials
  • All topic tags

Become a contributor for community

Get paid to write technical tutorials and select a tech-focused charity to receive a matching donation.

Sign Up

DigitalOcean Documentation

Full documentation for every DigitalOcean product.

Learn more

Resources for startups and SMBs

The Wave has everything you need to know about building a business, from raising funding to marketing your product.

Learn more

Get our newsletter

Stay up to date by signing up for DigitalOcean’s Infrastructure as a Newsletter.

SubmitSubmit

New accounts only. By submitting your email you agree to our Privacy Policy

The developer cloud

Scale up as you grow — whether you're running one virtual machine or ten thousand.

View all products

Get started for free

Sign up and get $200 in credit for your first 60 days with DigitalOcean.*

Get started

*This promotional offer applies to new accounts only.

© 2026 DigitalOcean, LLC.Sitemap.

Tag » How To Deploy Ruby App From Github