On Mar 28, 2007, at 2:02 AM, dubek wrote:

> Many people have this kind of situation (usually with 3 environments:
> dev, staging and production). Just search the capistrano and rails
> groups for "staging" and you'll find all the talks about it... I have
> a feeling the Jamis is planning some solution for it in the next big
> release. ;-)

I'm curious why you have that feeling. :) Even more, though, I'm  
curious what you think Capistrano ought to do about this. Personally,  
I think the case statement is a great solution. Totally fine. What  
could Capistrano do that would be cleaner and easier to read than:

   case ENV['STAGE']
   when "production"
     role ....
     set ...
     ...
   when "development"
     ....
   ...
   end

If it is the environment variable that looks klunky you, you can use  
capistrano variables instead:

   case stage
   ...
   end

And then invoke it like this

   cap -S stage=production deploy

- Jamis


--~--~---------~--~----~------------~-------~--~----~
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at http://groups.google.com/group/capistrano
-~----------~----~----~----~------~----~------~--~---

Reply via email to