Created
March 8, 2012 09:36
-
-
Save nysalor/1999947 to your computer and use it in GitHub Desktop.
capistrano multistage deploy_to(fixed)
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(:deploy_to) { "/var/www/#{application}-#{rails_env}" } | |
set(:releases_path) { File.join(deploy_to, version_dir) } | |
set(:shared_path) { File.join(deploy_to, shared_dir) } | |
set(:current_path) { File.join(deploy_to, current_dir) } | |
set(:release_path) { File.join(releases_path, release_name) } | |
# unicornを使っているなら以下も | |
set(:unicorn_config) { "#{current_path}/config/unicorn.rb" } | |
set(:unicorn_pid) { "#{current_path}/tmp/pids/unicorn.pid" } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment