Skip to content

Instantly share code, notes, and snippets.

@ursm
Created December 7, 2008 11:12
Show Gist options
  • Select an option

  • Save ursm/33082 to your computer and use it in GitHub Desktop.

Select an option

Save ursm/33082 to your computer and use it in GitHub Desktop.
set :application, 'watch-night'
set :scm, :mercurial
set :repository, "https://bitbucket.org/ursm/#{application}/"
set :deploy_via, :remote_cache
server = 'ursm.jp'
role :app, server
role :web, server
role :db, server, :primary => true
ssh_options[:username] = 'app'
ssh_options[:port] = 2222
set :use_sudo, false
namespace :deploy do
%w(start stop restart finalize_update).each do |t|
task t do end
end
task :after_symlink do
run "cd #{current_path} && sc-build"
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment