diff options
Diffstat (limited to 'config/deploy.rb')
-rw-r--r-- | config/deploy.rb | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/config/deploy.rb b/config/deploy.rb new file mode 100644 index 0000000..6c86a60 --- /dev/null +++ b/config/deploy.rb @@ -0,0 +1,24 @@ +set :application, "leap-public-site" +set :deploy_to, "/home/website/public-website" +set :user, "website" + +set :scm, :git +set :repository, "xxxxxxxxxxxxxxxxx" +set :branch, "master" +set :deploy_via, :remote_cache + +ssh_options[:forward_agent] = true +#ssh_options[:port] = + +role :web, "leap.se" +role :app, "leap.se" + +after "deploy:restart", "deploy:cleanup" + +namespace :deploy do + task :start do ; end + task :stop do ; end + task :restart, :roles => :app, :except => { :no_release => true } do + run "#{try_sudo} touch #{File.join(current_path,'tmp','restart.txt')}" + end +end |