Skip to content
McBen edited this page Mar 18, 2016 · 1 revision

deploy.rb

    set :application, 'my_app'
    set :repo_url, "file://" + Dir::pwd + "/.git"
    set :deploy_to, '/var/www/my_app_name'
    set :scm, :gitcopy

production.rb

    server 'www.my_server.com', user: 'deployer', roles: %w{app db web}

Always use Bundler: bundle exec cap production deploy

Clone this wiki locally