/config/deploy.rb
Ruby | 47 lines | 24 code | 10 blank | 13 comment | 0 complexity | e95b99943e6668bae804335f2a0262c6 MD5 | raw file
- $:.unshift(File.expand_path('./lib', ENV['rvm_path']))
- require 'bundler/capistrano'
- require 'rvm/capistrano'
- require 'capistrano_colors'
- set :rvm_ruby_string, '1.9.3'
- set :rvm_type, :user
- set :application, "superduster"
- set :repository, "git@bitbucket.org:3david/superduster.git"
- set :branch, "master"
- set :deploy_to, "/var/www/#{application}"
- set :scm, :git
- # Or: `accurev`, `bzr`, `cvs`, `darcs`, `git`, `mercurial`, `perforce`, `subversion` or `none`
- set :user, "www-data"
- set :port, 5776
- role :web, "elentok.com" # Your HTTP server, Apache/etc
- role :app, "elentok.com" # This may be the same as your `Web` server
- role :db, "elentok.com", :primary => true # This is where Rails migrations will run
- #role :db, "your slave db-server here"
- # 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
- 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')}"
- run "touch #{File.join(current_path,'tmp','restart.txt')}"
- end
- end
- ssh_options[:forward_agent] = true