set :application, "itunes_combat" set :repository, "http://svn.danwebb.net/external/itunes_combat/trunk" set :user, 'deploy' set :environment, 'production' # If you aren't deploying to /u/apps/#{application} on the target # servers (which is the default), you can specify the actual location # via the :deploy_to variable: set :deploy_to, "/var/www/apps/#{application}" # If you aren't using Subversion to manage your source code, specify # your SCM below: # set :scm, :subversion role :app, "danwebb.net" role :web, "danwebb.net" role :db, "danwebb.net", :primary => true namespace :deploy do task :restart do merb.stop merb.start end task :migrate do merb.migrate end end namespace :merb do task :start do run "cd #{current_path} && merb -d -e #{environment}" end task :stop do run "cd #{current_path} && merb -K all" end task :migrate do run "cd #{current_path} && rake MERB_ENV=#{environment} db:migrate" end end task :tail_log, :roles => :app do stream "tail -f #{deploy_to}/#{current_dir}/log/*.log" end