summaryrefslogtreecommitdiff
path: root/config/deploy.rb.example
blob: 1fd4b8c5dad47877acf94d7fcebb198db71ab3e7 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
require "bundler/capistrano"

set :application, "webapp"

set :scm, :git
set :repository,  "https://leap.se/git/leap_web"
set :branch, "master"

set :deploy_via, :remote_cache
set :deploy_to, '/home/webapp'
set :use_sudo, false

set :normalize_asset_timestamps, false

set :user, "webapp"

role :web, "YOUR SERVER"                          # Your HTTP server, Apache/etc
role :app, "YOUR SERVER"                          # This may be the same as your `Web` server

# We're not using this for now...
# role :db,  "your primary db-server here", :primary => true # This is where Rails migrations will run
# role :db,  "your slave db-server here"

# if you want to clean up old releases on each deploy uncomment this:
# after "deploy:restart", "deploy:cleanup"

# if you're still using the script/reaper helper you will need
# these http://github.com/rails/irs_process_scripts

# If you are using Passenger mod_rails uncomment this:
# 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