Skip to content

hari696/rails-deploy

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

20 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

RailsDeploy - Ruby on Rails

Overview.

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.

Installation

git clone ssh/https remote url
cd rails_deploy
bundle install

Configurations

  1. On your deploy.rb file: application, repo_url and deploy_to change accordingly.
  2. Change database name from rails_deploy_development to databasename in database.yml file.
  3. In config/deploy/production.rb file mention stage, rails_env and update IP Address in root@192.168.0.1.
  4. For more configurations capistrano.
  5. Change database names and username & password in config/database.yml file.

Development

For developing rails app follow offical documentation