mirror of
https://github.com/cp6/my-idlers.git
synced 2024-11-16 15:33:44 +01:00
Avoid overwriting DB
This commit is contained in:
parent
bf2861853f
commit
8eed4844e8
@ -83,6 +83,7 @@ docker run \
|
|||||||
-e DB_USERNAME=... \
|
-e DB_USERNAME=... \
|
||||||
-e DB_PASSWORD=... \
|
-e DB_PASSWORD=... \
|
||||||
ghcr.io/m3nu/my-idlers:latest # TODO: adjust after official image is set up!
|
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
|
## API endpoints
|
||||||
|
2
run.sh
2
run.sh
@ -16,7 +16,7 @@ DB_PASSWORD=${DB_PASSWORD}
|
|||||||
APP_URL=${APP_URL}
|
APP_URL=${APP_URL}
|
||||||
EOF
|
EOF
|
||||||
php artisan key:generate --no-interaction --force
|
php artisan key:generate --no-interaction --force
|
||||||
php artisan migrate:fresh --seed --force
|
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
# php artisan migrate:fresh --seed
|
||||||
php artisan serve --host=0.0.0.0 --port=8000 --env=production
|
php artisan serve --host=0.0.0.0 --port=8000 --env=production
|
||||||
|
Loading…
Reference in New Issue
Block a user