public
Rubygem
Description: Engine Yard specific capistrano recipes
Clone URL: git://github.com/engineyard/eycap.git
Search Repo:
Add juggernaut recipes
halorgium (author)
Sun May 11 19:52:55 -0700 2008
commit  ab900af2c3fcf3b06dba98adffb884c07a1042c5
tree    2d104be1db37c226b9bbf556963e8c936e55dd79
parent  acedfb16fd07aeb07c0fa5d7fcffaba1345aa51b
...
4
5
6
 
 
7
8
9
10
11
 
12
13
14
...
18
19
20
21
22
23
24
...
4
5
6
7
8
9
10
11
12
13
14
15
16
17
...
21
22
23
 
 
24
25
0
@@ -4,11 +4,14 @@
0
 Rakefile
0
 lib/capistrano/recipes/deploy/strategy/filtered_remote_cache.rb
0
 lib/eycap.rb
0
+lib/eycap/lib/ey_logger.rb
0
+lib/eycap/lib/ey_logger_hooks.rb
0
 lib/eycap/recipes.rb
0
 lib/eycap/recipes/backgroundrb.rb
0
 lib/eycap/recipes/database.rb
0
 lib/eycap/recipes/deploy.rb
0
 lib/eycap/recipes/ferret.rb
0
+lib/eycap/recipes/juggernaut.rb
0
 lib/eycap/recipes/memcached.rb
0
 lib/eycap/recipes/mongrel.rb
0
 lib/eycap/recipes/monit.rb
0
@@ -18,8 +21,6 @@
0
 lib/eycap/recipes/sphinx.rb
0
 lib/eycap/recipes/templates/maintenance.rhtml
0
 lib/eycap/recipes/tomcat.rb
0
-lib/eycap/lib/ey_logger.rb
0
-lib/eycap/lib/ey_logger_hooks.rb
0
 test/test_eycap.rb
0
 test/test_helper.rb
...
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
...
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
0
@@ -1 +1,19 @@
0
+Capistrano::Configuration.instance(:must_exist).load do
0
+
0
+ namespace :juggernaut do
0
+ desc "After update_code you want to symlink the juggernaut.yml file into place"
0
+ task :symlink_configs, :roles => :app, :except => {:no_release => true} do
0
+ run <<-CMD
0
+ cd #{release_path} &&
0
+ ln -nfs #{shared_path}/config/juggernaut.yml #{release_path}/config/juggernaut.yml
0
+ CMD
0
+ end
0
+ [:start,:stop,:restart].each do |op|
0
+ desc "#{op} juggernaut server"
0
+ task op, :roles => :app, :except => {:no_release => true} do
0
+ sudo "/usr/bin/monit #{op} all -g juggernaut_#{application}"
0
+ end
0
+ end
0
+ end
0
+end

Comments

    No one has commented yet.