mirror of
https://github.com/Bubka/2FAuth.git
synced 2025-06-20 03:38:06 +02:00
Move some commands to composer.json scripts section to ease installation
This commit is contained in:
parent
21dbda5336
commit
1a68a8e91a
@ -95,15 +95,14 @@ For SQLite, place the database `.sqlite` file in the `database/` folder of your
|
|||||||
|
|
||||||
### Set your variables
|
### Set your variables
|
||||||
|
|
||||||
In your installation directory make a copy of the `.env.example` file and rename the copy `.env`.
|
In your installation directory, edit the `.env` file and adapt the settings to your running environment (see instructions in the file).
|
||||||
Edit the `.env` file and adapt the settings to your running environment (see instructions in the file)
|
If the file is missing simply make a copy of the `.env.example` file and rename the copy `.env`.
|
||||||
|
|
||||||
### 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
|
||||||
```
|
```
|
||||||
|
|
||||||
|
@ -59,11 +59,19 @@
|
|||||||
"Illuminate\\Foundation\\ComposerScripts::postAutoloadDump",
|
"Illuminate\\Foundation\\ComposerScripts::postAutoloadDump",
|
||||||
"@php artisan package:discover --ansi"
|
"@php artisan package:discover --ansi"
|
||||||
],
|
],
|
||||||
"post-root-package-install": [
|
"pre-install-cmd": [
|
||||||
"@php -r \"file_exists('.env') || copy('.env.example', '.env');\""
|
|
||||||
],
|
],
|
||||||
"post-create-project-cmd": [
|
"post-install-cmd": [
|
||||||
"@php artisan key:generate --ansi"
|
"@php -r \"file_exists('.env') || copy('.env.example', '.env');\"",
|
||||||
|
"@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"
|
||||||
|
Loading…
x
Reference in New Issue
Block a user