mirror of
https://github.com/laravel/laravel.git
synced 2025-02-20 11:53:14 +08:00
Modify post-root-package-install script.
Idempotence.
This commit is contained in:
parent
e72d4a86e8
commit
2f0ec593bc
@ -30,7 +30,7 @@
|
||||
},
|
||||
"scripts": {
|
||||
"post-root-package-install": [
|
||||
"php -r \"copy('.env.example', '.env');\""
|
||||
"php -r \"file_exists('.env') || copy('.env.example', '.env');\""
|
||||
],
|
||||
"post-create-project-cmd": [
|
||||
"php artisan key:generate"
|
||||
|
Loading…
x
Reference in New Issue
Block a user