Skip to content

Instantly share code, notes, and snippets.

@HusseinMorsy
Created August 16, 2009 07:16
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save HusseinMorsy/168575 to your computer and use it in GitHub Desktop.
Save HusseinMorsy/168575 to your computer and use it in GitHub Desktop.
# ===================
# = 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, "git@github.com: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