Skip to content

Commit

Permalink
[Fix] Storage permissions after optimize (#12372)
Browse files Browse the repository at this point in the history
* re-run permissions after optimize

* remove possible redundant permission change
  • Loading branch information
esizer authored Dec 27, 2024
1 parent 27ae535 commit 8bc8b36
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions infrastructure/bin/post_deployment.sh
Original file line number Diff line number Diff line change
Expand Up @@ -46,9 +46,9 @@ cd /home/site/wwwroot/api
# Laravel local cache
if
mkdir --parents /tmp/bootstrap/cache /tmp/api/storage/framework/cache/data && \
php artisan optimize && \
chown www-data:www-data /tmp/bootstrap/cache && \
chown -R www-data:www-data /tmp/api/storage && \
php artisan optimize;
chown -R www-data:www-data /tmp/api/storage;
then
add_section_block ":white_check_mark: Laravel cache setup *successful*."
else
Expand Down

0 comments on commit 8bc8b36

Please sign in to comment.