From 8eed4844e8d20a8cfa9a8573dcad108903eb9515 Mon Sep 17 00:00:00 2001 From: Manuel Riel Date: Mon, 14 Mar 2022 06:51:41 +0000 Subject: [PATCH] Avoid overwriting DB --- README.md | 1 + run.sh | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 78fb544..c6d9cd0 100644 --- a/README.md +++ b/README.md @@ -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 diff --git a/run.sh b/run.sh index 199d6d2..f314f75 100755 --- a/run.sh +++ b/run.sh @@ -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