Hi, I'm using capistrano to deploy [non-rails] applications to our server environment. Because our SVN server lives on the LAN, but the entire application environment lives on a separate private network accessible only through a gateway machine, capistrano is an ideal tool for pushing updates to the various applications.
I'm running into an issue where I have a task that I want to call but on different hosts (ie: deploying to our staging and production servers). Right now, I'm doing it like this: cap deploy:my_app HOSTS="production1.server.com" however, I'd much prefer to call it like this: cap deploy:my_app:production or cap deploy:my_app:staging I created 2 tasks, one for staging and one for production, each with their roles set appropriately, and each calling a "deploy_my_app" task, but it tries to deploy the app to all servers. Is there a way to call deploy_my_app, but only have it execute on the servers with the roles defined in the calling task? I can't use "ENV['HOSTS'] = :production", since it requires that I supply it with a hostname/FQDN rather than a symbol referencing it. any help? tia. ...spike --~--~---------~--~----~------------~-------~--~----~ To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/capistrano -~----------~----~----~----~------~----~------~--~---
