From c7397864e66a6a51077c9cb74b1117f1b50971ae Mon Sep 17 00:00:00 2001 From: Andrew Welch Date: Fri, 27 Mar 2020 11:19:13 -0400 Subject: [PATCH 1/5] Remove project composer.lock file --- composer.json | 1 + 1 file changed, 1 insertion(+) diff --git a/composer.json b/composer.json index 49387ba..da09ce2 100644 --- a/composer.json +++ b/composer.json @@ -39,6 +39,7 @@ "@php -r \"copy('./cms/example.env', './cms/.env');\"", "@php -r \"copy('./scripts/example.env.sh', './scripts/.env.sh');\"", "@php -r \"unlink('composer.json');\"", + "@php -r \"unlink('composer.lock');\"", "@php -r \"unlink('LICENSE.md');\"", "@php -r \"unlink('README.md');\"" ] From 868731e211419ad96ac095ee4eb6492a84cc4661 Mon Sep 17 00:00:00 2001 From: Andrew Welch Date: Fri, 27 Mar 2020 11:20:16 -0400 Subject: [PATCH 2/5] Version 2.2.8 --- CHANGELOG.md | 4 ++++ composer.json | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 2347397..ee845b6 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,9 @@ # nystudio107/craft Change Log +## 2.2.8 - 2020.03.30 +### Changed +* Remove project `composer.lock` file + ## 2.2.7 - 2020.03.27 ### Changed * Removed `SITE_NAME` from the `.env` vars; it's not a secret, and it doesn't change per environment diff --git a/composer.json b/composer.json index da09ce2..9c2d981 100644 --- a/composer.json +++ b/composer.json @@ -1,7 +1,7 @@ { "name": "craftcms/craft", "description": "nystudio107 Craft 3.4 CMS scaffolding project", - "version": "2.2.7", + "version": "2.2.8", "keywords": [ "craft", "cms", From d41d45ddb07f46e71d801814bc92a431d8f4f4a0 Mon Sep 17 00:00:00 2001 From: Andrew Welch Date: Fri, 27 Mar 2020 11:37:03 -0400 Subject: [PATCH 3/5] Updated README.md --- README.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index 8ae4c82..2f9276d 100644 --- a/README.md +++ b/README.md @@ -47,7 +47,7 @@ Make sure that `PATH` is the path to your project, including the name you want f composer create-project nystudio107/craft craft3 -## Setting Local Dev +## Setting Up Local Dev You'll need Docker desktop for your platform installed to run the project in local development @@ -56,12 +56,12 @@ You'll need Docker desktop for your platform installed to run the project in loc * Start up the site with `docker-compose up` (the first build will be somewhat lengthy) * On the first time setting it up, the `craft_php_1` container will fail; this is normal * Import the `seed_db.sql` database dump the first time from the `scripts/` dir with `./docker_restore_db.sh seed_db.sql` -* 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 +* 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 * Navigate to `http://localhost:8000` to use the site; the `webpack-dev-server` runs off of `http://localhost:8080` The CP login credentials are initially set as follows: -Login: `andrew@nystudio107.com` +Login: `andrew@nystudio107.com` \ Password: `letmein` Obviously change these to whatever you like as needed From 5e06222c2c44b5705b39a185f7afcc0ab3b8503d Mon Sep 17 00:00:00 2001 From: Andrew Welch Date: Mon, 30 Mar 2020 13:58:46 -0400 Subject: [PATCH 4/5] Use separate app config files for web/console requests --- cms/config/app.console.php | 19 +++++++++++++++++++ cms/config/app.php | 17 +++++------------ cms/config/app.web.php | 32 ++++++++++++++++++++++++++++++++ 3 files changed, 56 insertions(+), 12 deletions(-) create mode 100644 cms/config/app.console.php create mode 100644 cms/config/app.web.php diff --git a/cms/config/app.console.php b/cms/config/app.console.php new file mode 100644 index 0000000..9cfa9d4 --- /dev/null +++ b/cms/config/app.console.php @@ -0,0 +1,19 @@ + getenv('REDIS_CRAFT_DB'), ], ], - 'session' => [ - 'class' => \yii\redis\Session::class, - 'redis' => [ - 'hostname' => getenv('REDIS_HOSTNAME'), - 'port' => getenv('REDIS_PORT'), - 'database' => getenv('REDIS_CRAFT_DB'), - ], - 'as session' => [ - 'class' => \craft\behaviors\SessionBehavior::class, - ], - ], ], ]; diff --git a/cms/config/app.web.php b/cms/config/app.web.php new file mode 100644 index 0000000..02462b0 --- /dev/null +++ b/cms/config/app.web.php @@ -0,0 +1,32 @@ + [ + 'session' => [ + 'class' => \yii\redis\Session::class, + 'redis' => [ + 'hostname' => getenv('REDIS_HOSTNAME'), + 'port' => getenv('REDIS_PORT'), + 'database' => getenv('REDIS_CRAFT_DB'), + ], + 'as session' => [ + 'class' => \craft\behaviors\SessionBehavior::class, + ], + ], + ], +]; From 5011786deb78c4519cc602722c7e63fffb3397bc Mon Sep 17 00:00:00 2001 From: Andrew Welch Date: Mon, 30 Mar 2020 14:00:52 -0400 Subject: [PATCH 5/5] Version 2.2.8 --- CHANGELOG.md | 1 + 1 file changed, 1 insertion(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index ee845b6..57367ed 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -3,6 +3,7 @@ ## 2.2.8 - 2020.03.30 ### Changed * Remove project `composer.lock` file +* Use separate app config files for web/console requests ## 2.2.7 - 2020.03.27 ### Changed