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
Timezone inconsistency might delete whole release folder being deployed #649
Labels
Comments
Yes, it's a bug. I'm thinking to using UTC for releases. |
@tchapi Any updates? |
Sorry for the late response — to me it looks good ! |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Description
When deploying to a remote server, the name of the release folder is determined with the
date()
function of the local machine.If another user deploys to the same server with a machine that is not configured to use the same timezone, or any timezone at all, the folder name timestamps will not be consistent to rsort, which will trigger a wrong cleanup task and potentially delete the current release (being deployed).
The problem apparently lies in https://github.com/deployphp/deployer/blob/master/recipe/common.php#L38
Steps to reproduce
Take two machines. One machine on which
php.ini
is the standard release file, and another where you added this line inphp.ini
:Deploy from the "standard release" machine, then deploy from the other : the current release folder will be deleted each time you try to release (see log below).
Content of
deploy.php
Output log
The text was updated successfully, but these errors were encountered: