Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
branch: master
Fetching contributors…

Cannot retrieve contributors at this time

36 lines (28 sloc) 0.807 kb
role "fran", "fran"
set :use_sudo, false
set :user, "francisco"
set :application, "scuba"
set :home, "/home/#{user}/www/#{application}"
set :scm, :git
set :repository, "/home/#{user}/repos/#{application}.git"
default_environment['SCUBA_TOKEN'] = "a" # FIXME grab it from local env
desc "Update #{application} source code from #{repository}"
task :update do
run "cd #{home} && git pull"
end
desc "(Re)start #{application} in production"
task :start do
run "cd #{home} && mkdir -p log && rake start"
end
desc "Stop #{application} in production"
task :stop do
run "cd #{home} && rake stop"
end
desc "Shows #{application}'s production log"
task :log do
stream "tail -f #{home}/log/thin.*.log"
end
desc "Resolve #{application}'s dependencies"
task :bundle do
run "cd #{home} && rake bundle"
end
Jump to Line
Something went wrong with that request. Please try again.