Skip to content

Commit 106affe

Browse files
committed
add template env
1 parent cdf939d commit 106affe

File tree

2 files changed

+7
-0
lines changed

2 files changed

+7
-0
lines changed

.env.simple

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
APP_NAME=MicroPHP
2+
APP_ENV=local
3+
SERVER_DRIVER=workerman
4+

composer.json

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,9 @@
2626
"phpunit/phpunit": "^10.2"
2727
},
2828
"scripts": {
29+
"post-root-package-install": [
30+
"@php -r \"file_exists('.env') || copy('.env.example', '.env');\""
31+
],
2932
"cs": [
3033
"./vendor/bin/php-cs-fixer fix --verbose"
3134
]

0 commit comments

Comments
 (0)