From 47309d6b2196cbf3bf6712e7ea605999a8028e54 Mon Sep 17 00:00:00 2001 From: Daniel Date: Sun, 27 Aug 2023 10:52:50 +0200 Subject: [PATCH] Updated readme to migrate as www-data This is because if migrate fails, the log file will be written as root instead of www-data, causing other issues down the line. --- README.md | 2 +- UPGRADE.md | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index fe4666ac0..d134176f7 100755 --- a/README.md +++ b/README.md @@ -33,7 +33,7 @@ To setup your Docker instance simply follow these steps: 4. Start the container in the background. 5. Setup the database. ```sh - docker exec -it control-center php artisan migrate + docker exec -it --user www-data control-center php artisan migrate ``` 6. To ensure that users will not need to log in after each time you re-deploy or upgrade the container, you need to create and store an application key in your environment and setup a shared volume. ```sh diff --git a/UPGRADE.md b/UPGRADE.md index efdd4c5bf..87afcb892 100644 --- a/UPGRADE.md +++ b/UPGRADE.md @@ -41,7 +41,7 @@ In the instructions where we use `docker exec` we assume your container is named 1. Make sure that `DB_HANDOVER_` database config is present in your environment file or docker configuration. Do not remove this as it's required for the migration. 2. Run the migration, this will copy over the required data fields from Handover so CC can run on it's own ```sh - docker exec -it control-center php artisan migrate + docker exec -it --user www-data control-center php artisan migrate ``` 3. If the migration was successful you may now remove the `DB_HANDOVER_*` environment settings as it'll no longer be used. 4. If you don't want to use Handover at all anymore, you can at this point change the OAUTH environment settings to the VATSIM OAuth settings.