Skip to content

Commit

Permalink
chore: Clear views and update ownership and permissions in deployment…
Browse files Browse the repository at this point in the history
… workflow (#637)
  • Loading branch information
vincentauger authored May 24, 2024
1 parent ce2e60f commit eacc027
Showing 1 changed file with 10 additions and 2 deletions.
12 changes: 10 additions & 2 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -96,11 +96,15 @@ jobs:
composer install --optimize-autoloader --no-interaction
php artisan optimize:clear
php artisan config:clear
php artisan view:clear
php artisan config:cache
php artisan migrate --force
php artisan db:seed --class=RoleAndPermissionSeeder --force
sudo systemctl reload php8.3-fpm.service
ln -s -n -f $RELEASE_PATH $ACTIVE_RELEASE_PATH
sudo chown -h osp:www-data $ACTIVE_RELEASE_PATH
shdo chown -R osp:www-data $ACTIVE_RELEASE_PATH
sudo chown -R osp:www-data $STORAGE_PATH
sudo chmod -R 771 $STORAGE_PATH
deploy-on-production:
Expand Down Expand Up @@ -157,9 +161,13 @@ jobs:
composer install --optimize-autoloader --no-interaction
php artisan optimize:clear
php artisan config:clear
php artisan view:clear
php artisan config:cache
php artisan migrate --force
php artisan db:seed --class=RoleAndPermissionSeeder --force
sudo chmod -R 771 $STORAGE_PATH
ln -s -n -f $RELEASE_PATH $ACTIVE_RELEASE_PATH
sudo systemctl reload php8.3-fpm.service
ln -s -n -f $RELEASE_PATH $ACTIVE_RELEASE_PATH
sudo chown -h osp:www-data $ACTIVE_RELEASE_PATH
shdo chown -R osp:www-data $ACTIVE_RELEASE_PATH
sudo chown -R osp:www-data $STORAGE_PATH
sudo chmod -R 771 $STORAGE_PATH

0 comments on commit eacc027

Please sign in to comment.