capify is pretty minimal config/deploy.rb This is the file that contains your Rails application’s deployment configuration config/deploy/environment_name.rb This file have specific configurations for the specific environment
deployment to those stages require 'capistrano/ext/multistage' require "bundler/capistrano" require 'capistrano_colors' set :application, "app_name" set :repository, "[email protected]:davidslv/app_name.git" set :scm, "git" set :ssh_options, { :forward_agent => true } set :use_sudo, false set :deploy_via, :remote_cache # Saves time, as it doesn't git clone the repository every time! desc 'restart' deploy.task :restart, :roles => :web do run "touch #{current_path}/tmp/restart.txt" end ...
true server 'hubberweb.example.com', :app, :web, :sync_cdn server 'powerserver1.example.com', :app, :queue, :sync_cdn server 'powerserver2.example.com', :app, :scheduler, :sync_cdn set :user, "squid" set :env, 'production' set :rails_env, 'production' set :branch, "production" set :keep_releases, 10 set :deploy_to, "/var/www/#{application}" after "deploy:restart", "deploy:cleanup" after 'deploy:symlink' do run "ln -s #{shared_path}/lib/file_name.rb #{release_path}/config/environments/" end before "maintenance:enable", "newrelic:disable_monitoring" after "maintenance:disable", "newrelic:enable_monitoring"