Skip to content

Commit

Permalink
Move order of events to allow all Deployer parameters to be available
Browse files Browse the repository at this point in the history
  • Loading branch information
loevgaard committed Sep 5, 2020
1 parent 2b4f1b8 commit 6dca78a
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions src/recipe/cron.php
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,11 @@

require_once 'task/cron.php';

// download and build are done before anything else because we can stop the deploy if
// any errors happen in either of these two tasks
// download existing cron before anything else because we can stop the deploy if any errors happen
before('deploy:prepare', 'cron:download');
after('cron:download', 'cron:build');

// build the cron just before symlinking. This is where all the necessary parameters are available, i.e. 'release_path'
before('deploy:symlink', 'cron:build');

// and then we upload the generated crontab when we are pointing the symlink to the new directory
after('deploy:symlink', 'cron:upload');
Expand Down

0 comments on commit 6dca78a

Please sign in to comment.