Skip to content

Instantly share code, notes, and snippets.

@longnz
Created September 6, 2013 07:58
Show Gist options
  • Save longnz/6460827 to your computer and use it in GitHub Desktop.
Save longnz/6460827 to your computer and use it in GitHub Desktop.
deploy git with capistrano
set :application, "mydomain.vn"
# the path to your new deployment directory on the server
set :deploy_to, "/home/longnguyen/www"
# the git-clone url for your repository
set :repository, "git@bitbucket.org:gialachoanglong/repo.git"
# the branch you want to clone (default is master)
set :branch, "master"
# the name of the deployment user-account on the server
set :user, "longnguyen"
set :scm_passphrase, "mypasss" # The deploy user's password
server "nguyenlong.info", :app, :web, :db, :primary => true
default_run_options[:pty] = true
##### You shouldn't need to edit below unless you're customizing #####
# Additional SCM settings
set :scm, :git
set :deploy_via, :remote_cache
set :copy_strategy, :checkout
set :keep_releases, 3
set :use_sudo, false
set :copy_compression, :bz2
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment