set :application, "ignitionproject" set :repository, "http://svn.ignition-project.com/www/trunk/" # 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, "/home/railsapps/ignitionproject" # If you aren't using Subversion to manage your source code, specify # your SCM below: # set :scm, :subversion role :app, "railsapps@prometheus.poseidonimaging.com" role :web, "railsapps@prometheus.poseidonimaging.com" role :db, "railsapps@prometheus.poseidonimaging.com", :primary => true # Restart functions desc "Restarts Apache" deploy.task :restart_web_server, :roles => :web do sudo "/etc/init.d/apache2 restart" end desc "Restarts Mongrel" deploy.task :restart, :roles => :web do sudo "/etc/init.d/mongrel.ignitionproject restart" end desc "Copies database.yml" deploy.task :config_db, :roles => :db do run "cp -f /home/railsapps/database.yml.ignitionproject /home/railsapps/ignitionproject/current/config/database.yml" end