This commit is contained in:
parent
b6670a0f6e
commit
307d4b7927
@ -5,19 +5,21 @@ php artisan optimize
|
|||||||
|
|
||||||
# perform DB migrations
|
# perform DB migrations
|
||||||
if [[ ! -f ./database/database.sqlite ]]; then
|
if [[ ! -f ./database/database.sqlite ]]; then
|
||||||
if [[ ! -f /data/database.sqlite ]]; then
|
|
||||||
echo "No database found. Creating."
|
|
||||||
touch /data/database.sqlite
|
|
||||||
fi
|
|
||||||
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
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if [[ ! -f ./.env ]]; then
|
if [[ ! -f /data/database.sqlite ]]; then
|
||||||
if [[ ! -f /data/.env ]]; then
|
echo "No database found. Creating."
|
||||||
|
touch /data/database.sqlite
|
||||||
|
fi
|
||||||
|
|
||||||
|
if [[ ! -f /data/.env ]]; then
|
||||||
echo "No enviroment found. Creating."
|
echo "No enviroment found. Creating."
|
||||||
cp .env.example /data/.env
|
cp .env.example /data/.env
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
if [[ ! -f ./.env ]]; then
|
||||||
echo "No link to environment. Linking environment."
|
echo "No link to environment. Linking environment."
|
||||||
ln -s /data/.env ./.env
|
ln -s /data/.env ./.env
|
||||||
php artisan key:generate
|
php artisan key:generate
|
||||||
|
Loading…
Reference in New Issue
Block a user