-
-
Notifications
You must be signed in to change notification settings - Fork 1.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Is {{release_path}} still the way to get the current release? #3337
Comments
After The But Deployer also has a special param release_or_current_path. The |
Thanks for the quick reply. I'd really like to symlink secrets before completing the release so I don't catch clients trying to access the site during a release. Another question: is there any way to detect if I'm in the middle of a release or not, assuming |
Easiest was to check if release exists is: $releaseExists = test('[ -h {{deploy_path}}/release ]'); |
I just realized that means I can |
* Change path references via deployphp/deployer#3337 (comment) * Remove release, included in prepare via deployphp/deployer#3301 (comment) * Update deployer to 7.1.1
I recently upgraded from deployer 6 to 7, and had a command that would symlink some env secrets for the current release, so that
releases/4
, this would symlink a file intoreleases/4/.env
./vendor/bin/dep link:secrets stage=staging
,{{release_path}}
would return the current release and link to it as well.In both cases, I get the error:
What's the currently supported method to get the path to the working release?
{{release_name}}
for the second case returns5
if the current release is4
.As of this writing, the implementation of
release_name
is:I would prefer not to hack the internals in case something changes in future.
The text was updated successfully, but these errors were encountered: