aboutsummaryrefslogtreecommitdiffstats
path: root/config/deploy.rb.example
blob: 396e9b8a2434c0ff4515c6f5cf345c4eeb05ee41 (plain) (blame)
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
38
39
require 'bundler/capistrano'
require File.dirname(__FILE__) + '/capistrano_database_yml'

set :application, "set your application name here"
set :repository,  "set your repository location here"

set :scm, :git
set :branch, 'master' unless exists?(:branch)

set :deply_to, "path on server"

# On FreeBSD uncomment the following lines
#set :use_sudo, false
#default_environment['RB_USER_INSTALL'] = '/usr/bin/install -c'

#set :rvm_ruby_string, ENV['GEM_HOME'].gsub(/.*\//,"")
set :rvm_ruby_string, '1.9.3-p286'
set :rvm_type, :system
require "rvm/capistrano"

role :web, "your web-server here"                          # Your HTTP server, Apache/etc
role :app, "your app-server here"                          # This may be the same as your `Web` server
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