1
0
Fork 0
mirror of https://github.com/archtechx/tenancy.git synced 2026-02-04 16:44:04 +00:00

Add composer script to copy .env.example to .env

This commit is contained in:
Samuel Štancl 2019-02-07 17:43:12 +01:00
parent 7355d9b98a
commit 576ec1cf02
2 changed files with 7 additions and 0 deletions

2
.env.example Normal file
View file

@ -0,0 +1,2 @@
# DB_USERNAME=foo
# DB_PASSWORD=bar

View file

@ -37,5 +37,10 @@
"Stancl\\Tenancy\\TenancyServiceProvider" "Stancl\\Tenancy\\TenancyServiceProvider"
] ]
} }
},
"scripts": {
"post-root-package-install": [
"@php -r \"file_exists('.env') || copy('.env.example', '.env');\""
]
} }
} }