diff options
-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 |