This commit is contained in:
parent
064120f8c9
commit
5edf298758
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user