mirror of
https://github.com/deployphp/deployer.git
synced 2025-02-24 01:02:24 +01:00
Merge pull request #585 from oisvidi/envrelease
Allows people to use other release names like tag without replacing t…
This commit is contained in:
commit
9bce6316ac
@ -36,6 +36,7 @@ env('git_cache', function () { //whether to use git cache - faster cloning by bo
|
||||
}
|
||||
return version_compare($version, '2.3', '>=');
|
||||
});
|
||||
env('release_name', date('YmdHis')); // name of folder in releases
|
||||
|
||||
/**
|
||||
* Default arguments and options.
|
||||
@ -120,9 +121,7 @@ env('release_path', function () {
|
||||
* Release
|
||||
*/
|
||||
task('deploy:release', function () {
|
||||
$release = date('YmdHis');
|
||||
|
||||
$releasePath = "{{deploy_path}}/releases/$release";
|
||||
$releasePath = "{{deploy_path}}/releases/{{release_name}}";
|
||||
|
||||
$i = 0;
|
||||
while (is_dir(env()->parse($releasePath)) && $i < 42) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user