-
Website
http://www.dennmart.com -
Original page
http://www.dennmart.com/2007/09/03/capistrano-like-that-person-you-hate-yet-end-up-falling-in-love-with/ -
Subscribe
All Comments -
Community
-
Top Commenters
-
Cheap Textbooks
1 comment · 1 points
-
Dan Gebhardt
1 comment · 1 points
-
kychan
1 comment · 1 points
-
joegrossberg
1 comment · 2 points
-
topfunky
2 comments · 3 points
-
-
Popular Threads
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.
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
Thanks for that snippet. It does sound better having Capistrano take care of the spinner script rather than keeping it in the repository. I'm sure I'll find it very valuable when deploying my upcoming project. Thanks!
i will be thankful to you.
My previous seminar went well. Now I have an another query, if you help me in this also.
As there is a concept of remoting in .net,
is this possible to deploy the components in ROR and to make these components communicate with each other as done in remoting concept?
Is this possible in ROR?
Please guide me.
Thanks
Harbans