From a72ae0a35e24d5d6c6e7cfb2fb0a81f853ecfc8e Mon Sep 17 00:00:00 2001 From: naagaraa Date: Mon, 7 Jun 2021 15:52:00 +0700 Subject: [PATCH] update generate env after install via composer --- .env.example | 28 +++++++++++++++++++----- README.md | Bin 33724 -> 33732 bytes composer.json | 2 +- includes/.htaccess | 1 + includes/script/generate.php | 41 +++++++++++++++++++++++++++++++++++ public/index.html | 10 +++++++++ storage/index.html | 9 ++++++++ 7 files changed, 84 insertions(+), 7 deletions(-) create mode 100644 includes/.htaccess create mode 100644 includes/script/generate.php create mode 100644 public/index.html create mode 100644 storage/index.html diff --git a/.env.example b/.env.example index 3760e64..74a6376 100644 --- a/.env.example +++ b/.env.example @@ -1,15 +1,31 @@ -# this u have config or change the name folder -# write this config +# config file .env untuk configurasi pada file +# apps/config/database.php +# apps/config/constant.php -# configurasi Path here +APP_DEBUG=true +APP_ENV=local +APP_MAINTENANCE=off + +# configurasi Path here APP_NAME=prosedural-php-native APP_FOLDER=/prosedural-php-native/ APP_HOST=http://localhost/ APP_URL=http://localhost/prosedural-php-native/ -#database config +# configurasi Database here DB_HOST=localhost DB_PORT=3306 DB_NAME= -DB_USER=root -DB_PASS= +DB_USERNAME=root +DB_PASSWORD= + +# configurasi mailer (on development) +MAIL_DEBUG=true +MAIL_MAILER=smtp +MAIL_HOST=mailhog +MAIL_PORT=1025 +MAIL_USERNAME=null +MAIL_PASSWORD=null +MAIL_ENCRYPTION=null +MAIL_FROM_ADDRESS=null +MAIL_FROM_NAME='${APP_NAME}' \ No newline at end of file diff --git a/README.md b/README.md index d435f5296f726b8f40274020d3c94dc7d1a4fb28..d70d76dda166ebbb2dd58e016292216cf9bb3bcd 100644 GIT binary patch delta 16 Xcmdnf&UB=mX@b?{XHsGtJxZDZJkSRA delta 16 XcmX@o&a|hUX@b?{J7Rnr14^0!JbDJ` diff --git a/composer.json b/composer.json index d89814d..b0e171a 100644 --- a/composer.json +++ b/composer.json @@ -34,7 +34,7 @@ }, "scripts": { "post-create-project-cmd": [ - "cp .env.example .env" + "php includes/script/generate.php" ] }, "minimum-stability": "dev", diff --git a/includes/.htaccess b/includes/.htaccess new file mode 100644 index 0000000..3418e55 --- /dev/null +++ b/includes/.htaccess @@ -0,0 +1 @@ +deny from all \ No newline at end of file diff --git a/includes/script/generate.php b/includes/script/generate.php new file mode 100644 index 0000000..ee77ff1 --- /dev/null +++ b/includes/script/generate.php @@ -0,0 +1,41 @@ + + +403 Forbidden + +

Forbidden

+

You don't have permission to access this resource.

+
+
Apache/2.4.47 (Win64) OpenSSL/1.1.1k PHP/7.4.18 Server at localhost Port 80
+ diff --git a/storage/index.html b/storage/index.html new file mode 100644 index 0000000..93041a7 --- /dev/null +++ b/storage/index.html @@ -0,0 +1,9 @@ + + +403 Forbidden + +

Forbidden

+

You don't have permission to access this resource.

+
+
Apache/2.4.47 (Win64) OpenSSL/1.1.1k PHP/7.4.18 Server at localhost Port 80
+