#======================== #CONFIG #======================== set :application, "searcher" set :scm, :git set :git_enable_submodules, 1 set :repository, "ft_git3@spicevan.com:beta_tools.git" set :branch, "master" set :ssh_options, { :forward_agent => true } set :stage, :production set :user, "docs" set :use_sudo, false set :runner, "docs" set :deploy_to, "/data/apps/#{stage}/#{application}" set :app_server, :passenger set :domain, "searcher" #======================== #ROLES #======================== role :app, domain role :web, domain role :db, domain, :primary => true #======================== #CUSTOM #======================== namespace :deploy do task :start, :roles => :app do run "touch #{current_release}/tmp/restart.txt" end task :stop, :roles => :app do # Do nothing. end desc "Restart Application" task :restart, :roles => :app do run "touch #{current_release}/tmp/restart.txt" end end