changing post deploy
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
Matt Burchett 2021-04-07 00:28:57 -07:00
parent 064120f8c9
commit 5edf298758

View File

@ -3,10 +3,7 @@
# Create data dir if it doesn't exist
mkdir -p /data
# update application cache
php artisan optimize
# perform DB migrations
# perform setup
if [[ ! -f ./database/database.sqlite ]]; then
echo "No link to database. Linking database."
ln -s /data/database.sqlite ./database/database.sqlite
@ -28,6 +25,10 @@ if [[ ! -f /data/.env ]]; then
php artisan key:generate --force
fi
# update application cache
php artisan optimize
# perform db migrations
php artisan migrate
# own the data folder to www-data