Skip to content

Commit

Permalink
failsafe for initial deployment
Browse files Browse the repository at this point in the history
  • Loading branch information
Propaganistas authored Feb 26, 2024
1 parent fe002d0 commit 5bf2227
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion recipe/deploy/info.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,5 +3,7 @@

desc('Displays info about deployment');
task('deploy:info', function () {
info("deploying <fg=magenta;options=bold>{{target}}</> (release <fg=magenta;options=bold>{{release_name}}</>)");
$releaseName = test('[ -d {{deploy_path}}/.dep ]') ? get('release_name') : 1;

info("deploying <fg=magenta;options=bold>{{target}}</> (release <fg=magenta;options=bold>{$releaseName}</>)");
});

0 comments on commit 5bf2227

Please sign in to comment.