This commit is contained in:
parent
064120f8c9
commit
5edf298758
@ -3,10 +3,7 @@
|
|||||||
# Create data dir if it doesn't exist
|
# Create data dir if it doesn't exist
|
||||||
mkdir -p /data
|
mkdir -p /data
|
||||||
|
|
||||||
# update application cache
|
# perform setup
|
||||||
php artisan optimize
|
|
||||||
|
|
||||||
# perform DB migrations
|
|
||||||
if [[ ! -f ./database/database.sqlite ]]; then
|
if [[ ! -f ./database/database.sqlite ]]; then
|
||||||
echo "No link to database. Linking database."
|
echo "No link to database. Linking database."
|
||||||
ln -s /data/database.sqlite ./database/database.sqlite
|
ln -s /data/database.sqlite ./database/database.sqlite
|
||||||
@ -28,6 +25,10 @@ if [[ ! -f /data/.env ]]; then
|
|||||||
php artisan key:generate --force
|
php artisan key:generate --force
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
# update application cache
|
||||||
|
php artisan optimize
|
||||||
|
|
||||||
|
# perform db migrations
|
||||||
php artisan migrate
|
php artisan migrate
|
||||||
|
|
||||||
# own the data folder to www-data
|
# own the data folder to www-data
|
||||||
|
Loading…
Reference in New Issue
Block a user