Append '@' to let composer resolve PHP executable

To execute PHP scripts, you can use `@php` which will automatically resolve to whatever
php process is currently being used.

See https://getcomposer.org/doc/articles/scripts.md#executing-php-scripts
for more information.
This commit is contained in:
Tim Groeneveld 2017-01-30 17:26:30 +10:00 committed by GitHub
parent 1e6859799b
commit cc42c3fe0a
1 changed files with 4 additions and 4 deletions

View File

@ -29,18 +29,18 @@
},
"scripts": {
"post-root-package-install": [
"php -r \"file_exists('.env') || copy('.env.example', '.env');\""
"@php -r \"file_exists('.env') || copy('.env.example', '.env');\""
],
"post-create-project-cmd": [
"php artisan key:generate"
"@php artisan key:generate"
],
"post-install-cmd": [
"Illuminate\\Foundation\\ComposerScripts::postInstall",
"php artisan optimize"
"@php artisan optimize"
],
"post-update-cmd": [
"Illuminate\\Foundation\\ComposerScripts::postUpdate",
"php artisan optimize"
"@php artisan optimize"
]
},
"config": {