mirror of
https://github.com/deployphp/deployer.git
synced 2025-02-19 23:04:40 +01:00
Add release name to deploy:info (#3783)
* add release name to info * failsafe for initial deployment
This commit is contained in:
parent
51e8e82c07
commit
ef0087d988
@ -3,5 +3,7 @@ namespace Deployer;
|
||||
|
||||
desc('Displays info about deployment');
|
||||
task('deploy:info', function () {
|
||||
info("deploying <fg=magenta;options=bold>{{target}}</>");
|
||||
$releaseName = test('[ -d {{deploy_path}}/.dep ]') ? get('release_name') : 1;
|
||||
|
||||
info("deploying <fg=magenta;options=bold>{{target}}</> (release <fg=magenta;options=bold>{$releaseName}</>)");
|
||||
});
|
||||
|
Loading…
x
Reference in New Issue
Block a user