[d402d9]: config / deploy.rb  Maximize  Restore  History

Download this file

44 lines (34 with data), 1.4 kB

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
require 'mongrel_cluster/recipes'
set :application, "cattrack"
set :repository, "http://code.hg.sourceforge.net/p/jikesrvm/cattrack"
# 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/cattrack/#{application}"
# If you aren't using Subversion to manage your source code, specify
# your SCM below:
set :scm, :mercurial
if where == "anu"
role :app, "jikesrvm.anu.edu.au"
role :web, "jikesrvm.anu.edu.au"
role :db, "jikesrvm.anu.edu.au", :primary => true
end
if where == "watson"
role :app, "legato.watson.ibm.com"
role :web, "legato.watson.ibm.com"
role :db, "legato.watson.ibm.com", :primary => true
end
if where == "pok"
role :app, "orquesta.pok.ibm.com"
role :web, "orquesta.pok.ibm.com"
role :db, "orquesta.pok.ibm.com", :primary => true
end
set :user, "cattrack"
set :use_sudo, false
set :mongrel_conf, "#{current_path}/config/mongrel_cluster.yml"
task :copy_external_resources, :roles => :app do
run "cp #{shared_path}/config/database.yml #{release_path}/config/database.yml"
run "cp #{shared_path}/config/local.rb #{release_path}/config/local.rb"
run "cp #{shared_path}/resources/favicon.ico #{release_path}/public/favicon.ico"
end
after "deploy:update_code", :copy_external_resources

Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:





No, thanks