Skip to content

Commit

Permalink
+ post deploy main
Browse files Browse the repository at this point in the history
  • Loading branch information
James-jamames committed Oct 5, 2023
1 parent 4c7f4b7 commit b7aea64
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions docker/production/post_deploy.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
#!/bin/bash

# update application cache
php artisan optimize
php artisan optimize:clear

# start the application
php-fpm -D && nginx -g "daemon off;"

chmod -R 775 /var/www/server/storage && \
chmod -R 775 /var/www/server/bootstrap/cache && \
chown www-data:www-data /var/www/server/bootstrap/cache && \
chown www-data:www-data /var/www/server/storage/*

0 comments on commit b7aea64

Please sign in to comment.