David Yang wrote:
> I have a pretty standard multistage setup and I do a
>
> set :server_name, "myserver.com"
>
> In my prod) file along with some other variables.
>
> In my main deploy.rb I also set a default server_name but I expect
> that if prod already sets it then the default won't overwrite...
> However it seems as if it is - is server_name special in any regard
> from other vars set in multistage?
>
> Thanks,
> David
>
>   
You could use fetch[1] method:

        fetch(:server_name, 'myserver.com')

In this case if :server_name is not defined then get the value 
'myserver.com'.

Regards!

[1]http://wiki.capify.org/index.php/Fetch


-- 
Rafa


--~--~---------~--~----~------------~-------~--~----~
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