From 9ad01fd783bb658560c769aa5a4268aaab022f60 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Omer=20=C5=A0abi=C4=87?= Date: Thu, 28 Dec 2023 11:38:24 +0100 Subject: [PATCH] build: add .env.example and fix create-project composer command --- .env.example | 62 +++++++++++++++++++++++++++++++++++++++++++++++++++ composer.json | 6 ++--- 2 files changed, 64 insertions(+), 4 deletions(-) create mode 100644 .env.example diff --git a/.env.example b/.env.example new file mode 100644 index 0000000..4a78f78 --- /dev/null +++ b/.env.example @@ -0,0 +1,62 @@ +APP_NAME=Eclipse +APP_ENV=local +APP_KEY= +APP_DEBUG=true +APP_URL=http://eclipse.lndo.site + +LOG_CHANNEL=stack +LOG_DEPRECATIONS_CHANNEL=null +LOG_LEVEL=debug + +DB_CONNECTION=mysql +DB_HOST=database +DB_PORT=3306 +DB_DATABASE=eclipse +DB_USERNAME=developer +DB_PASSWORD=developer + +BROADCAST_DRIVER=log +CACHE_DRIVER=file +FILESYSTEM_DISK=local +QUEUE_CONNECTION=sync +SESSION_DRIVER=file +SESSION_LIFETIME=120 + +MEMCACHED_HOST=127.0.0.1 + +REDIS_HOST=redis +REDIS_PASSWORD=null +REDIS_PORT=6379 + +MAIL_MAILER=smtp +MAIL_HOST=sendmailhog +MAIL_PORT=1025 +MAIL_USERNAME=null +MAIL_PASSWORD=null +MAIL_ENCRYPTION=null +MAIL_FROM_ADDRESS="hello@example.com" +MAIL_FROM_NAME="${APP_NAME}" + +AWS_ACCESS_KEY_ID= +AWS_SECRET_ACCESS_KEY= +AWS_DEFAULT_REGION=us-east-1 +AWS_BUCKET= +AWS_USE_PATH_STYLE_ENDPOINT=false + +PUSHER_APP_ID= +PUSHER_APP_KEY= +PUSHER_APP_SECRET= +PUSHER_HOST= +PUSHER_PORT=443 +PUSHER_SCHEME=https +PUSHER_APP_CLUSTER=mt1 + +VITE_PUSHER_APP_KEY="${PUSHER_APP_KEY}" +VITE_PUSHER_HOST="${PUSHER_HOST}" +VITE_PUSHER_PORT="${PUSHER_PORT}" +VITE_PUSHER_SCHEME="${PUSHER_SCHEME}" +VITE_PUSHER_APP_CLUSTER="${PUSHER_APP_CLUSTER}" + +TELESCOPE_ENABLED=true + +FONTAWESOME_KIT_URL= diff --git a/composer.json b/composer.json index 68fdf03..b4c177b 100644 --- a/composer.json +++ b/composer.json @@ -57,13 +57,11 @@ "Illuminate\\Foundation\\ComposerScripts::postAutoloadDump", "@php artisan package:discover --ansi" ], - "post-update-cmd": [ + "post-package-update": [ "@php artisan eclipse:post-composer-update" ], - "post-root-package-install": [ - "@php -r \"file_exists('.env') || copy('.env.example', '.env');\"" - ], "post-create-project-cmd": [ + "@php -r \"file_exists('.env') || copy('.env.example', '.env');\"", "@php artisan key:generate --ansi" ] },