Posts

Showing posts from December, 2017

DEPLOYING PROJECT USING CAPISTRANO (CAPISTRANO IN RAILS)

Image
We can Deploy project on Digital Ocean, AWS, Transip, Linode server ... using CapistranoWhat is Capistrano:- Capistrano is a remote server automation tool.

It supports the scripting and execution of arbitrary tasks, and includes a set of sane-default deployment workflows.

For that we have to follow simple steps :- How to Install Capistrano We can use Capistrano in RAILS 4, RAILS 5 as well as RAILS 2 and 3 . If we use RAILS 4 and 5 , then we can follow these steps :- 1.  Gemfile:- group :development do
             gem "capistrano"
             gem 'net-ssh'
             gem 'capistrano-bundler'
             gem 'capistrano-rails'
             gem 'capistrano-rvm'
             gem 'capistrano-sidekiq'
       end


2.   Run the bundle      cd /path/to/your/projectbundle 3.   Prepare your Project for Capistrano       capify .       This will create:       Capfile in the root directory of your Rails app       deploy.rb file in the config directo…