Avoid overwriting DB

This commit is contained in:
Manuel Riel 2022-03-14 06:51:41 +00:00
parent bf2861853f
commit 8eed4844e8
2 changed files with 2 additions and 1 deletions

View File

@ -83,6 +83,7 @@ docker run \
-e DB_USERNAME=... \
-e DB_PASSWORD=... \
ghcr.io/m3nu/my-idlers:latest # TODO: adjust after official image is set up!
docker exec ... php artisan migrate:fresh --seed --force # Set up database one time
```
## API endpoints

2
run.sh
View File

@ -16,7 +16,7 @@ DB_PASSWORD=${DB_PASSWORD}
APP_URL=${APP_URL}
EOF
php artisan key:generate --no-interaction --force
php artisan migrate:fresh --seed --force
fi
# php artisan migrate:fresh --seed
php artisan serve --host=0.0.0.0 --port=8000 --env=production