2011-06-30 19:36:47 +08:00
|
|
|
set :application, "set your application name here"
|
|
|
|
set :repository, "set your repository location here"
|
|
|
|
|
|
|
|
set :scm, :subversion
|
|
|
|
# Or: `accurev`, `bzr`, `cvs`, `darcs`, `git`, `mercurial`, `perforce`, `subversion` or `none`
|
|
|
|
|
|
|
|
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"
|
|
|
|
|
2011-06-30 19:37:43 +08:00
|
|
|
# if you're still using the script/reaper helper you will need
|
2011-06-30 19:36:47 +08:00
|
|
|
# these http://github.com/rails/irs_process_scripts
|
|
|
|
|
2011-06-30 19:37:43 +08:00
|
|
|
# If you are using Passenger mod_rails uncomment this:
|
2011-06-30 19:36:47 +08:00
|
|
|
# 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
|