Skip to content

Commit

Permalink
- Fixed deploy_cleanup story (wrong tasks)
Browse files Browse the repository at this point in the history
- Moved queue restart to deployment_finish (from deployment_cache)
  • Loading branch information
davidrushton committed May 19, 2018
1 parent f120361 commit 1a4abfb
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions Envoy.blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -61,8 +61,7 @@
deployment_composer
deployment_migrate
deployment_cache
deployment_optimize
deployment_update_current
deployment_finish
health_check
deployment_cleanup
@endstory
Expand Down Expand Up @@ -103,11 +102,12 @@
php {{ $release }}/artisan view:clear --quiet
php {{ $release }}/artisan cache:clear --quiet
php {{ $release }}/artisan config:cache --quiet
php {{ $release }}/artisan queue:restart --quiet
echo "Cache cleared"
@endtask

@task('deployment_finish')
php {{ $release }}/artisan queue:restart --quiet
echo "Queue restarted"
ln -nfs {{ $release }} {{ $path }}/current
echo "Deployment ({{ $date }}) finished"
@endtask
Expand All @@ -128,15 +128,15 @@


@task('health_check')
@if ( ! empty($healthUrl) )
@if ( ! empty($healthUrl) )
if [ "$(curl --write-out "%{http_code}\n" --silent --output /dev/null {{ $healthUrl }})" == "200" ]; then
printf "\033[0;32mHealth check to {{ $healthUrl }} OK\033[0m\n"
else
printf "\033[1;31mHealth check to {{ $healthUrl }} FAILED\033[0m\n"
fi
@else
echo "No health check set"
@endif
@endif
@endtask


Expand Down

0 comments on commit 1a4abfb

Please sign in to comment.