Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Branch: master
Fetching contributors…

Cannot retrieve contributors at this time

36 lines (28 sloc) 0.785 kB
load 'deploy'
set :application, "flickrhub"
set :domain, "seatbelt.jerakeen.org"
set :repository, "git://github.com/tominsam/flickrhub.git"
set :use_sudo, false
set :deploy_to, "/home/tomi/CapDeploy/#{application}"
set :scm, "git"
role :app, domain
role :web, domain
role :db, domain, :primary => true
namespace :deploy do
task :start, :roles => :app do
run "sudo webroar restart flickrhub"
end
task :stop, :roles => :app do
# Do nothing.
end
desc "Restart Application"
task :restart, :roles => :app do
run "sudo webroar restart flickrhub"
end
end
namespace :custom do
task :config, :roles => :app do
run "ln -s #{deploy_to}/shared/database.yml #{current_release}/config"
end
end
after "deploy:update_code", "custom:config"
Jump to Line
Something went wrong with that request. Please try again.