Created
August 7, 2012 08:26
-
-
Save valachi/3283169 to your computer and use it in GitHub Desktop.
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
require 'bundler/capistrano' | |
server '5.9.59.102', :web, :app, :db, primary: true | |
set :deploy_via, :remote_cache | |
set :scm, :git | |
set :repository, 'git://github.com/valachi/mystore.git' | |
set :deploy_to, '~' | |
set :user, 'mystore' | |
set :use_sudo, :false | |
set :normalize_asset_timestamps, false | |
ssh_options[:forward_agent] = true | |
namespace :deploy do | |
task(:start) {} | |
task(:stop) {} | |
desc 'restarting the application' | |
task :restart, :roles => :app, :except => { :no_release => true } do | |
run "touch# {current_path}/tmp/restart.txt" | |
end | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment