Hello, > puts "line 10" > > server domain, :app, :web > role :db, domain, :primary => true It seems that the problem is located here. You are trying to access the domain variable before it is set (the variable will be set only when the staging task is called, after all the necessary files are parsed.
It is possible to use a block for the role directive, which will be evaluated only when required (that is, during the deploy task, after the staging task is called), but you can't use blocks for the server directive. @Nick Howard: there is no need to create specific tasks, that is the purpose of the multistage extension. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Capistrano" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.co.uk/group/capistrano?hl=en -~----------~----~----~----~------~----~------~--~---
