Created
September 6, 2013 07:58
-
-
Save longnz/6460827 to your computer and use it in GitHub Desktop.
deploy git with capistrano
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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