Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Fetching contributors…

Cannot retrieve contributors at this time

27 lines (21 sloc) 0.853 kb
load 'deploy' if respond_to?(:namespace) # cap2 differentiator
Dir['vendor/plugins/*/recipes/*.rb'].each { |plugin| load(plugin) }
set :application, "planningalerts.org.au/parsers"
set :repository, "git://git.openaustralia.org/planningalerts-parsers.git"
role :web, "kedumba.openaustraliafoundation.org.au"
set :use_sudo, false
set :user, "deploy"
set :scm, :git
set :stage, "test" unless exists? :stage
if stage == "production"
set :deploy_to, "/srv/www/www.#{application}"
elsif stage == "test"
set :deploy_to, "/srv/www/test.#{application}"
#set :branch, "test"
end
namespace :deploy do
task :restart, :except => { :no_release => true } do
run "touch #{File.join(current_path,'tmp','restart.txt')}"
run "rake -f #{File.join(deploy_to,'../app/current','Rakefile')} planningalerts:authorities:load RAILS_ENV=production"
end
end
Jump to Line
Something went wrong with that request. Please try again.