DISQUS

DISQUS Hello!  The comments on this profile are unclaimed and thus are unverified.

Do they belong to you? Claim these comments.

Dave's picture

Unregistered

Feeds

aliases

  • Dave

Dave

1 year ago

in Capistrano - Like that person you hate, yet end up falling in love with on The Puerto Rican Rails Dude
The code above did not come out well. Let's try that again.


namespace :spinner do
desc :app do
dispatcher_type = fetch(:dispatcher_type, 'mongrel')
dispatcher_instances = fetch(:dispatcher_instances, 3)
dispatcher_bind_ip = fetch(:dispatcher_bind_ip, '127.0.0.1')
dispatcher_starting_port = fetch(:dispatcher_starting_port, 8000)
rails_env = fetch(:rails_env, 'production')

script = 0755
end
end

1 year ago

in Capistrano - Like that person you hate, yet end up falling in love with on The Puerto Rican Rails Dude
Nice writeup. Regarding spin, I find it useful to add a task to create it rather than have it in svn.



namespace :deploy do
namespace :spinner do
desc :app do
dispatcher_type = fetch(:dispatcher_type, 'mongrel')
dispatcher_instances = fetch(:dispatcher_instances, 3)
dispatcher_bind_ip = fetch(:dispatcher_bind_ip, '127.0.0.1')
dispatcher_starting_port = fetch(:dispatcher_starting_port, 8000)
rails_env = fetch(:rails_env, 'production')

script = 0755
end
end
end


Then, use a trigger to execute it:


after "deploy:update_code", "deploy:spinner:write"


Note, this is for cap 2.x.
Returning? Login