Just put your before/after declarations in the corresponding stage file. E.g., in config/deploy/production.rb, say:
after "deploy:update", "upload_static_assets_to_s3" etc. - Jamis On 4/10/09 8:00 AM, ivar vasara wrote: > I've been using Capistrano for some time now, but one thing I haven't > been able to figure out is how to conditionally invoke tasks based on > environment. For example, on production there are additional > configurations to be made and static assets to be uploaded to s3. I'm > using the cap-ext plugin successfully, but being able to add before/ > after filters based on environment would be a big win. Is there a > standard way of doing this ? > > --~--~---------~--~----~------------~-------~--~----~ To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/capistrano -~----------~----~----~----~------~----~------~--~---
