From 10391ffcd3741ebf111ebe518d2ee12aa58440b5 Mon Sep 17 00:00:00 2001 From: blu Date: Mon, 18 Mar 2024 14:23:09 +0100 Subject: [PATCH] one more fixup --- .env.sample | 4 ++++ abra.sh | 9 --------- 2 files changed, 4 insertions(+), 9 deletions(-) diff --git a/.env.sample b/.env.sample index 1787ad3..3ad5d9e 100644 --- a/.env.sample +++ b/.env.sample @@ -1,5 +1,9 @@ +##### START - essential values to be configured DOMAIN="open-inventory.example.net" APP_URL="https://open-inventory.example.net" +### obtain an APP_KEY via `/dev/urandom | head -c 32 | base64`, it looks like something like this: "jTYFZ/0b55r7UnGy2AKN9guSdqHyUl+iomf553Mrpd8=" +APP_KEY= +##### END - essential values to be configured TYPE=open-inventory LETS_ENCRYPT_ENV=production diff --git a/abra.sh b/abra.sh index 25fbe28..6454e7c 100644 --- a/abra.sh +++ b/abra.sh @@ -11,18 +11,9 @@ export DB_PASSWORD=$(cat /run/secrets/db_password) initial_setup() { cd /app/ - # init .env file, we only use it for the APP_KEY, as the other variables, are exported by Docker as env vars - echo "APP_KEY=" > .env - - echo "Generating APP_KEY..." - php artisan key:generate - # clear config cache, where a previous invalid APP_KEY might still be present clear_cache - # after generating the APP_KEY, in order for Laravel to pick it up, it needs to be exported - export_dot_env .env - echo "DB migrations status:" php artisan migrate:status echo "Starting DB migrations..."