How To Deploy A Rails Application From Github? - DigitalOcean
Maybe your like
- 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 RailsGitBy laohasongkramsu
Popular topicsI 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…
- sudo apt-get update
- I installed git
- removed the folder “/home/rails” and everything inside
- cloned the app from Github to “/home/”
- renamed the cloned folder to “rails”
- I setup the locale environment
- configured postgresql user and password
- bundle install everything
- 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.0Sorry 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?
Reply0ok i figured it out
- make sure to create /home/index.html as your first/index page and point your route there before you push to git
- install git apt-get install git
- ssh to your digitalocean domain
- navigate to cd /home/rails
- delete folder “rails”
- clone your rails repo from github git clone YOUR_REMOTE_ADDRESS
- rename the downloaded repo to rails mv OLD_FOLDER NEW_FOLDER
- setup your db rake db:drop db:create db:migrate
- 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.
ReplyPopular Topics
- AI/ML
- Ubuntu
- Linux Basics
- JavaScript
- Python
- MySQL
- Docker
- Kubernetes
- All tutorials
- 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.
SubmitSubmitNew 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 productsGet 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
-
Deploying A Ruby/Rails App On Ubuntu/Debian - Gists · GitHub
-
Setting Up A New Server And Deploy Ruby - Gists · GitHub
-
A Beginners Guide To Deploying A Rails App On Heroku - Gists · GitHub
-
Steps To Set Up A New Rails App, Initialize A Git Repo, Push To Github ...
-
Steps To Deploy Ruby On Rails Apps On Amazon EC2 With PostgresSql
-
Deploy To Heroku From Ruby On Rails - Gists · GitHub
-
Apps-documentation/Ruby On At Master - GitHub
-
How To Deploy Rails Applications With Ansible, Capistrano And ...
-
Continuous Deployment With Rails & GitHub Actions - GoRails
-
Deploying Ruby Apps With Git-Deploy - YouTube
-
Deploying A React JS/Rails App Using Heroku And GitHub Pages
-
Getting Started On Heroku With Rails 6.x
-
Deploy Ruby, Rails Projects From GitLab, GitHub Or BitBucket ...
-
Push Your App To GitHub - Rails Girls Guides