Disregard this. I was able to figure it out. Ruby functions like File.read 
for example will not work within on() blocks.

On Wednesday, July 20, 2016 at 4:29:02 PM UTC-4, Frank Laszlo wrote:
>
> Versions:
>
>    - Ruby 2.3.1p112
>    - Capistrano 3.5.0
>    - Rake 10.5.0
>
> Platform:
>
>    - Ubuntu 16.04
>    - CentOS 7
>
> Logs:
>
>    - Output -> http://pastebin.com/C8jeY4z1
>    - db.rake -> http://pastebin.com/PN2sfUQa
>
>
> It appears as though the task I've built isnt even trying to use the 
> roles, even though I have "on" defined (the :app and :db roles are defined 
> in production.rb), Everything works fine if I include the task as part of 
> my normal deploy, but I want to be able to run it on demand ad-hoc. When 
> the task runs, it complains about the file not existing when it does 
> get_creds, but I see nothing about where its running at, which makes me 
> believe its running locally. The file should not exist locally as its only 
> on the app server.
>
> Any ideas? Thanks
>
> -Frank
>

-- 
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/34f9f8ca-be13-43b6-978a-cf8ca7ee22a1%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to