Use Capistrano's current_path. #226

Closed
wants to merge 1 commit into
from

Conversation

Projects
None yet
2 participants

rroblak commented Jul 4, 2013

Use Capistrano's current_path instead of release_path to allow the Cap
task to be run independent of when the release directory is created.
The release directory name is determined at Cap load time via Time.now;
however, if the release directory is not being created during this
Cap run the Airbrake Cap task tries to cd into a non-existent directory
and errors out. Better to use current_path, which is always
correct.

@rroblak rroblak Use Capistrano's current_path.
Use Capistrano's current_path instead of release_path to allow the Cap
task to be run independent of when the release directory is created.
The release directory name is determined at Cap load time via Time.now;
however, if the release directory is not being created during this
Cap run the Airbrake Cap task tries to cd into a non-existent directory
and errors out.  Better to use current_path, which is always
correct.
d859772
Owner

kyrylo commented Aug 19, 2015

Hi! Does this also work when you deploy for the very first time?

rroblak commented Aug 24, 2015

@kyrylo Not sure as I don't use Cap any more.

Owner

kyrylo commented Aug 24, 2015

Thanks for the answer. I'm going to close this for now, since there were no other reports for this issue. Let me know if it's still an issue in case someone stumbles upon it.

kyrylo closed this Aug 24, 2015

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment