Revert changes to composer.json scripts section

This reverts commits:
1a68a8e91aca60447e7b930b31c6e46be4f7d719
a8614f4aa0fa88b754f06be4dc87c254067c2003
This commit is contained in:
Bubka 2022-03-31 12:40:14 +02:00
parent a8614f4aa0
commit d6222035ef
3 changed files with 9 additions and 15 deletions

View File

@ -8,9 +8,10 @@ php:
- 8.0 - 8.0
before_script: before_script:
- cp .env.travis .env
- travis_retry composer self-update - travis_retry composer self-update
- travis_retry composer install --no-interaction - travis_retry composer install --no-interaction
- cp .env.travis .env - php artisan key:generate
- nvm install node --lts - nvm install node --lts
- npm install npm@latest -g - npm install npm@latest -g
- npm install - npm install

View File

@ -95,14 +95,15 @@ For SQLite, place the database `.sqlite` file in the `database/` folder of your
### Set your variables ### Set your variables
In your installation directory, edit the `.env` file and adapt the settings to your running environment (see instructions in the file). In your installation directory make a copy of the `.env.example` file and rename the copy `.env`.
If the file is missing simply make a copy of the `.env.example` file and rename the copy `.env`. Edit the `.env` file and adapt the settings to your running environment (see instructions in the file)
### Prepare some stuff ### Prepare some stuff
```sh ```sh
php artisan migrate:refresh php artisan migrate:refresh
php artisan passport:install php artisan passport:install
php artisan storage:link
php artisan config:cache php artisan config:cache
``` ```

View File

@ -59,19 +59,11 @@
"Illuminate\\Foundation\\ComposerScripts::postAutoloadDump", "Illuminate\\Foundation\\ComposerScripts::postAutoloadDump",
"@php artisan package:discover --ansi" "@php artisan package:discover --ansi"
], ],
"pre-install-cmd": [ "post-root-package-install": [
"@php -r \"file_exists('.env') || copy('.env.example', '.env');\""
], ],
"post-install-cmd": [ "post-create-project-cmd": [
"@php -r \"file_exists('.env') || copy('.env.example', '.env');\"", "@php artisan key:generate --ansi"
"@php artisan key:generate",
"@php artisan storage:link"
],
"pre-update-cmd": [
],
"post-update-cmd": [
"@php artisan cache:clear"
], ],
"test" : [ "test" : [
"vendor/bin/phpunit" "vendor/bin/phpunit"