Skip to content

Commit 8322ee3

Browse files
author
Andrew Welch
committed
Merge branch 'release/2.2.8' into craft-webpack
2 parents bdc84d5 + 5011786 commit 8322ee3

File tree

6 files changed

+66
-16
lines changed

6 files changed

+66
-16
lines changed

CHANGELOG.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,10 @@
11
# nystudio107/craft Change Log
22

3+
## 2.2.8 - 2020.03.30
4+
### Changed
5+
* Remove project `composer.lock` file
6+
* Use separate app config files for web/console requests
7+
38
## 2.2.7 - 2020.03.27
49
### Changed
510
* Removed `SITE_NAME` from the `.env` vars; it's not a secret, and it doesn't change per environment

README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ Make sure that `PATH` is the path to your project, including the name you want f
4747

4848
composer create-project nystudio107/craft craft3
4949

50-
## Setting Local Dev
50+
## Setting Up Local Dev
5151

5252
You'll need Docker desktop for your platform installed to run the project in local development
5353

@@ -56,12 +56,12 @@ You'll need Docker desktop for your platform installed to run the project in loc
5656
* Start up the site with `docker-compose up` (the first build will be somewhat lengthy)
5757
* On the first time setting it up, the `craft_php_1` container will fail; this is normal
5858
* Import the `seed_db.sql` database dump the first time from the `scripts/` dir with `./docker_restore_db.sh seed_db.sql`
59-
* Then hit ^C (Control-C) to stop the Docker containers, and restart them with `docker-compose up` and `craft_php_1` should then work properly, since the db has been seeded
59+
* Then hit `^C` (Control-C) to stop the Docker containers, and restart them with `docker-compose up` and `craft_php_1` should then work properly, since the db has been seeded
6060
* Navigate to `http://localhost:8000` to use the site; the `webpack-dev-server` runs off of `http://localhost:8080`
6161

6262
The CP login credentials are initially set as follows:
6363

64-
Login: `andrew@nystudio107.com`
64+
Login: `andrew@nystudio107.com` \
6565
Password: `letmein`
6666

6767
Obviously change these to whatever you like as needed

cms/config/app.console.php

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
<?php
2+
/**
3+
* Yii Console Application Config
4+
*
5+
* Edit this file at your own risk!
6+
*
7+
* The array returned by this file will get merged with
8+
* vendor/craftcms/cms/src/config/app.php and app.[web|console].php, when
9+
* Craft's bootstrap script is defining the configuration for the entire
10+
* application.
11+
*
12+
* You can define custom modules and system components, and even override the
13+
* built-in system components.
14+
*
15+
* This application config is applied only for *only* console requests
16+
*/
17+
18+
return [
19+
];

cms/config/app.php

Lines changed: 5 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -5,12 +5,16 @@
55
* Edit this file at your own risk!
66
*
77
* The array returned by this file will get merged with
8-
* vendor/craftcms/cms/src/config/app/main.php and [web|console].php, when
8+
* vendor/craftcms/cms/src/config/app.php and app.[web|console].php, when
99
* Craft's bootstrap script is defining the configuration for the entire
1010
* application.
1111
*
1212
* You can define custom modules and system components, and even override the
1313
* built-in system components.
14+
*
15+
* If you want to modify the application config for *only* web requests or
16+
* *only* console requests, create an app.web.php or app.console.php file in
17+
* your config/ folder, alongside this one.
1418
*/
1519

1620
return [
@@ -38,16 +42,5 @@
3842
'database' => getenv('REDIS_CRAFT_DB'),
3943
],
4044
],
41-
'session' => [
42-
'class' => \yii\redis\Session::class,
43-
'redis' => [
44-
'hostname' => getenv('REDIS_HOSTNAME'),
45-
'port' => getenv('REDIS_PORT'),
46-
'database' => getenv('REDIS_CRAFT_DB'),
47-
],
48-
'as session' => [
49-
'class' => \craft\behaviors\SessionBehavior::class,
50-
],
51-
],
5245
],
5346
];

cms/config/app.web.php

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
<?php
2+
/**
3+
* Yii Web Application Config
4+
*
5+
* Edit this file at your own risk!
6+
*
7+
* The array returned by this file will get merged with
8+
* vendor/craftcms/cms/src/config/app.php and app.[web|console].php, when
9+
* Craft's bootstrap script is defining the configuration for the entire
10+
* application.
11+
*
12+
* You can define custom modules and system components, and even override the
13+
* built-in system components.
14+
*
15+
* This application config is applied only for *only* web requests
16+
*/
17+
18+
return [
19+
'components' => [
20+
'session' => [
21+
'class' => \yii\redis\Session::class,
22+
'redis' => [
23+
'hostname' => getenv('REDIS_HOSTNAME'),
24+
'port' => getenv('REDIS_PORT'),
25+
'database' => getenv('REDIS_CRAFT_DB'),
26+
],
27+
'as session' => [
28+
'class' => \craft\behaviors\SessionBehavior::class,
29+
],
30+
],
31+
],
32+
];

composer.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "craftcms/craft",
33
"description": "nystudio107 Craft 3.4 CMS scaffolding project",
4-
"version": "2.2.7",
4+
"version": "2.2.8",
55
"keywords": [
66
"craft",
77
"cms",
@@ -39,6 +39,7 @@
3939
"@php -r \"copy('./cms/example.env', './cms/.env');\"",
4040
"@php -r \"copy('./scripts/example.env.sh', './scripts/.env.sh');\"",
4141
"@php -r \"unlink('composer.json');\"",
42+
"@php -r \"unlink('composer.lock');\"",
4243
"@php -r \"unlink('LICENSE.md');\"",
4344
"@php -r \"unlink('README.md');\""
4445
]

0 commit comments

Comments
 (0)