diff options
author | Azul <azul@riseup.net> | 2012-09-20 13:02:18 +0200 |
---|---|---|
committer | Azul <azul@riseup.net> | 2012-09-20 13:02:18 +0200 |
commit | 15354c284879c734ca9bd87450d715dcdbe8aec2 (patch) | |
tree | 27da8c877ca69b74770f48db109f851798a2c465 | |
parent | e8353821b846e676b85736d748cb923d8854884e (diff) |
capified and moved bin to own dir
-rw-r--r-- | Capfile | 3 | ||||
-rwxr-xr-x | bin/leap_ca (renamed from leap_ca.rb) | 0 | ||||
-rw-r--r-- | config/deploy.rb.example | 23 |
3 files changed, 26 insertions, 0 deletions
@@ -0,0 +1,3 @@ +load 'rubygems' +load 'railsless-deploy' +load 'config/deploy' diff --git a/config/deploy.rb.example b/config/deploy.rb.example new file mode 100644 index 0000000..5fb18ed --- /dev/null +++ b/config/deploy.rb.example @@ -0,0 +1,23 @@ +require "bundler/capistrano" + +set :application, "leap_ca" + +set :scm, :git +set :repository, "git://leap.se/leap_ca" + +role :app, "YOUR SERVER GOES HERE" + +# if you want to clean up old releases on each deploy uncomment this: +# after "deploy:restart", "deploy:cleanup" + +namespace :deploy do + task :start, :roles => :app do + run "#{File.join(current_path,'bin','leap_ca')} start" + end + task :stop, :roles => :app do + run "#{File.join(current_path,'bin','leap_ca')} stop" + end + task :restart, :roles => :app, :except => { :no_release => true } do + run "#{File.join(current_path,'bin','leap_ca')} restart" + end +end |