Created
August 16, 2009 07:16
-
-
Save HusseinMorsy/168575 to your computer and use it in GitHub Desktop.
This file contains hidden or 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
# =================== | |
# = Global Settings = | |
# =================== | |
set :application, "myapp" | |
set :domain, "family.bridge-mx11.de" | |
set :user, "deploy-familygame" | |
set :use_sudo, false | |
set :rails_env, "production" | |
# ======= | |
# = SCM = | |
# ======= | |
set :scm, :git | |
set :repository, "[email protected]:HusseinMorsy/familygame.com.git" | |
set :deploy_via, :remote_cache | |
set :branch, "master" | |
set :deploy_to, "/srv/www/#{application}" | |
# ========= | |
# = Roles = | |
# ========= | |
role :app, "#{domain}" | |
role :web, "#{domain}" | |
role :db, "#{domain}", :primary => true | |
# overide deploy:start, deploy:stop and deploy:restart for passenger | |
namespace :deploy do | |
desc "Restarting mod_rails with restart.txt" | |
task :restart, :roles => :app, :except => { :no_release => true } do | |
run "touch #{current_path}/tmp/restart.txt" | |
end | |
[:start, :stop].each do |t| | |
desc "#{t} task is a no-op with mod_rails" | |
task t, :roles => :app do ; end | |
end | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment