#$:.unshift(File.expand_path('./lib', ENV['rvm_path'])) require "bundler/capistrano" #load 'deploy/assets' # load 'config/recipes/monit' # Load RVM's capistrano plugin. #require "rvm/capistrano" set :application, "qwaiter" set :repository, "root@uflows.com:/var/git/qwaiter.git" set :scm, :git #set :revision, '89700f36e9' # Or: `accurev`, `bzr`, `cvs`, `darcs`, `git`, `mercurial`, `perforce`, `subversion` or `none` # Do not touch public/images,stylesheets,javascripts set :normalize_asset_timestamps, false role :web, "qwaiter.com" # Your HTTP server, Apache/etc role :app, "qwaiter.com" # 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're still using the script/reaper helper you will need # these http://github.com/rails/irs_process_scripts set :deploy_via, :remote_cache set :branch, :master set :user, 'root' set :deploy_to, '/var/www/qwaiter' #set :bundle_cmd, 'bundle install --deployment' # 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} chown -R www-data:www-data #{release_path}" run "#{try_sudo} touch #{File.join(current_path,'tmp','restart.txt')}" end end