Here you find a practice on how to create a rails app and deploy it on Remote Server by using capistrano gem. App has been created and tested in Digital Ocean. By default mysql
is used as Database Server (You can change this by adding dependency in Gem file). This project can be used as a boiler plate for rails app to deploy on production
server. For change of staging follow the steps stated below.
git clone ssh/https remote url
cd rails_deploy
bundle install
- On your deploy.rb file:
application
,repo_url
anddeploy_to
change accordingly. - Change database name from
rails_deploy_development
todatabasename
in database.yml file. - In
config/deploy/production.rb
file mentionstage
,rails_env
and update IP Address inroot@192.168.0.1
. - For more configurations capistrano.
- Change database names and username & password in
config/database.yml
file.
For developing rails app follow offical documentation