If you have found that documented somwehere, it is wrong.

set :applicationdir, "/home/#{
​fetch(:​
user
​)​
}/#{
​fetch(:​
application
​)​
}"

​is how it should be.​

Lee Hambley
--
http://lee.hambley.name/
+49 (0) 170 298 5667


On 5 March 2014 13:11, Gilbert Sinnott <[email protected]> wrote:

> Hi there,
>
> These are the first lines of my deploy.rb file:
>
> set :user, 'gs'
> set :domain, 'domain.com'
> set :project, 'myproject'
> set :application, 'myproject.com'
> set :applicationdir, "/home/#{user}/#{application}"
>
> Logs:
>
>    - undefined local variable or method `user' for main:Object
>
> Versions:
>
>    - ruby-2.0.0-p353
>    - Capistrano 3.1
>    - Rails 4
>
>
> Really strange - I've experimented setting/calling other variables but
> can't seem to access them?
>
> --
> You received this message because you are subscribed to the Google Groups
> "Capistrano" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to [email protected].
> To view this discussion on the web, visit
> https://groups.google.com/d/msgid/capistrano/b2cd036d-d36f-45e6-86c9-04ba0186378d%40googlegroups.com<https://groups.google.com/d/msgid/capistrano/b2cd036d-d36f-45e6-86c9-04ba0186378d%40googlegroups.com?utm_medium=email&utm_source=footer>
> .
> For more options, visit https://groups.google.com/groups/opt_out.
>

-- 
You received this message because you are subscribed to the Google Groups 
"Capistrano" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web, visit 
https://groups.google.com/d/msgid/capistrano/CAN_%2BVLWG%2Bu6S0G7%2BUqxi%2Ba18GEZD22s5YJHZeDpQ0k3USxvdsw%40mail.gmail.com.
For more options, visit https://groups.google.com/groups/opt_out.

Reply via email to