Skip to content

Instantly share code, notes, and snippets.

@nysalor
Created March 8, 2012 09:36
Show Gist options
  • Save nysalor/1999947 to your computer and use it in GitHub Desktop.
Save nysalor/1999947 to your computer and use it in GitHub Desktop.
capistrano multistage deploy_to(fixed)
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