Merge pull request #585 from oisvidi/envrelease

Allows people to use other release names like tag without replacing t…
This commit is contained in:
Oanh Nguyen 2016-03-14 17:27:43 +07:00
commit 9bce6316ac

View File

@ -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) {