From f7603f322edb60fd1ba2d1bcaed08dbea2489c2b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Andr=C3=A9=20Lima?= Date: Mon, 29 Jul 2024 22:41:26 +0100 Subject: [PATCH 1/2] chore: add .env file --- .env | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100644 .env diff --git a/.env b/.env new file mode 100644 index 0000000..81193ef --- /dev/null +++ b/.env @@ -0,0 +1,23 @@ +APP_NAME=ENEI +APP_KEY=base64:O8e0ShbVWB3OAAFGbSUweWr1JM3xutu1isYLKLk4mqU= +APP_DEBUG=true +APP_URL=http://localhost + +LOCALE=pt +FAKER_LOCALE=pt_PT + +DB_CONNECTION=pgsql +DB_HOST=pgsql +DB_PORT=5432 +DB_DATABASE=postgres +DB_PASSWORD=postgres +DB_USERNAME=postgres + +SCOUT_QUEUE=true +SCOUT_DRIVER=meilisearch +MEILISEARCH_HOST=http://meilisearch:3331 +MEILISEARCH_KEY=my-master-key + +MEILISEARCH_NO_ANALYTICS=false + +LOG_CHANNEL="eneiWebsite" From 06960fe1475e2d6ef597060cce6b795e91a8ee41 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Andr=C3=A9=20Lima?= Date: Mon, 29 Jul 2024 23:26:12 +0100 Subject: [PATCH 2/2] chore: some general deployment changes --- dockerfiles/Dockerfile.seeder | 2 +- etc/entrypoint.sh | 1 - 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/dockerfiles/Dockerfile.seeder b/dockerfiles/Dockerfile.seeder index 55c47b6..c805a65 100644 --- a/dockerfiles/Dockerfile.seeder +++ b/dockerfiles/Dockerfile.seeder @@ -32,4 +32,4 @@ RUN [ -z "${LARAVEL_ENV_FILE_KEY}" ] || ( mv .env.${LARAVEL_ENV} .env.${LARAVEL_ COPY public/ ./public/ COPY storage/ ./storage/ -CMD [ "php", "artisan", "migrate", "-n"] +CMD [ "php", "artisan", "migrate", "-n", "--seed"] diff --git a/etc/entrypoint.sh b/etc/entrypoint.sh index 46539f5..2b236b0 100755 --- a/etc/entrypoint.sh +++ b/etc/entrypoint.sh @@ -4,6 +4,5 @@ set -e # Cache config and other stuff php artisan optimize -n -rm .env.${LARAVEL_ENV}* /usr/bin/supervisord -c /etc/supervisor/conf.d/supervisord.conf