Skip to content

Commit 40dc5cb

Browse files
Add default example environment file (#939)
Co-authored-by: Luke Towers <[email protected]>
1 parent fa50b4c commit 40dc5cb

File tree

2 files changed

+46
-0
lines changed

2 files changed

+46
-0
lines changed

.env.example

+43
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,43 @@
1+
APP_NAME="Winter CMS"
2+
APP_KEY=
3+
APP_DEBUG=true
4+
APP_URL=http://localhost
5+
APP_LOCALE=en
6+
7+
DB_CONNECTION=mysql
8+
DB_HOST=127.0.0.1
9+
DB_PORT=3306
10+
DB_DATABASE=database
11+
DB_USERNAME=root
12+
DB_PASSWORD=
13+
14+
CACHE_DRIVER=file
15+
16+
SESSION_DRIVER=file
17+
18+
REDIS_HOST=127.0.0.1
19+
REDIS_PASSWORD=null
20+
REDIS_PORT=6379
21+
22+
QUEUE_CONNECTION=sync
23+
24+
MAIL_MAILER=log
25+
MAIL_LOG_CHANNEL=null
26+
MAIL_HOST=null
27+
MAIL_PORT=null
28+
MAIL_USERNAME=null
29+
MAIL_PASSWORD=null
30+
MAIL_ENCRYPTION=null
31+
MAIL_FROM_ADDRESS=[email protected]
32+
MAIL_FROM_NAME="${APP_NAME}"
33+
34+
ROUTES_CACHE=false
35+
ASSET_CACHE=false
36+
LINK_POLICY=detect
37+
ENABLE_CSRF=true
38+
DATABASE_TEMPLATES=false
39+
40+
AWS_ACCESS_KEY_ID=
41+
AWS_SECRET_ACCESS_KEY=
42+
AWS_DEFAULT_REGION=us-east-1
43+
AWS_BUCKET=

composer.json

+3
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,9 @@
4646
"dms/phpunit-arraysubset-asserts": "^0.1.0|^0.2.1"
4747
},
4848
"scripts": {
49+
"post-root-package-install": [
50+
"@php -r \"file_exists('.env') || copy('.env.example', '.env');\""
51+
],
4952
"post-create-project-cmd": [
5053
"@php artisan key:generate"
5154
],

0 commit comments

Comments
 (0)