How to deploy Ruby on Rails app from GitHub repository onto DigitalOcean Ubuntu 18.04 droplet using HTTPS URL from GitHub?

Posted May 19, 2019 5.3k views
Ruby on RailsGitDeploymentUbuntu 18.04

I have already tried searching the DigitalOcean documentation and I could not find any information in the existing documentation to my question.

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.

Submit an Answer
1 answer


You could follow the steps here on how to deploy a Rails app with Git hooks:

Hope that this helps!

by Mitchell Anicas
In this tutorial, we will show you how to use Git hooks to automate the deployment of the production environment of your Rails application to a remote Ubuntu 14.04 server. Using Git hooks will allow you to deploy your application by simply pushing your changes to a production server. This particular setup uses a simple "post-receive" Git hook, in addition to Puma as the application server, Nginx as a reverse proxy to Puma, and PostgreSQL as the database.