455718df1cfe56be0b40d544e3741fce48347b6a
1 set
:application, "depot"
2 set
:repository, "http://scripts.njae.me.uk/svn/m8rails/#{application}/branches/stable"
4 # If you aren't deploying to /u/apps/#{application} on the target
5 # servers (which is the default), you can specify the actual location
6 # via the :deploy_to variable:
7 set
:deploy_to, "/var/www/depot.njae.me.uk/"
9 # If you aren't using Subversion to manage your source code, specify
12 set
:scm_username, 'neil'
14 role
:app, "depot.njae.me.uk"
15 role
:web, "depot.njae.me.uk"
16 role
:db, "depot.njae.me.uk", :primary => true
18 # Have the spinner/spawner/reaper processes run as the default user
21 # Copy the database.yml file across, as it's not kept in the SVN repository
22 after
"deploy:update_code" , :configure_database
23 desc
"copy database.yml into the current release path"
24 task
:configure_database, :roles => :app do
25 db_config
= "#{deploy_to}/config/database.yml"
26 run
"cp #{db_config} #{release_path}/config/database.yml"
29 # Define the user for running and stopping server sub-proceses (Mongrel, etc.)
32 # As we're not running any other server processes (FastCGI, Mongrel, etc.),
33 # we don't need to start and stop them.
35 [:start, :stop, :restart].each
do |t
|
36 desc
"#{t} task is a no-op with mod_rails"
37 task t
, :roles => :app do ; end