Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- ##### deploy.rb
- require 'capistrano/ext/multistage'
- set :stages, ["master", "production"]
- set :default_stage, "master"
- set :application, "project"
- set :scm, :git
- set :repository, "git repository"
- set :user, "ubuntu"
- default_run_options[:pty] = true
- ssh_options[:keys] = %w(path to public.pem)
- ssh_options[:verbose] = :debug
- ssh_options[:forward_agent] = true
- ##### master.rb
- server "IP ADRESS", :app, :web, :db, :primary => true
- set :deploy_to, "/var/www-master"
- set :branch, 'master'
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement