Skip to content

Commit

Permalink
Merge branch 'release/2.3.4' into craft-webpack
Browse files Browse the repository at this point in the history
  • Loading branch information
Andrew Welch committed Sep 2, 2020
2 parents 144632d + 113af57 commit 65c13ea
Show file tree
Hide file tree
Showing 6 changed files with 41 additions and 18 deletions.
8 changes: 8 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,13 @@
# nystudio107/craft Change Log

## 2.3.4 - 2020.09.02
### Added
* Added a `queue` component with a longer `ttr`

### Changed
* Refactor composer scripts to handle Craft not being installed, leveraging craft `install/check`
* Boilerplate now requires `craftcms/cms` `^3.5.8`

## 2.3.3 - 2020.08.13
### Fixed
* Modern config only for local dev, [fixing multi-compiler issues](https://github.com/webpack/webpack-dev-server/issues/2355) with HRM
Expand Down
27 changes: 20 additions & 7 deletions cms/composer.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"require": {
"craftcms/cms": "^3.4.23",
"craftcms/cms": "^3.5.8",
"vlucas/phpdotenv": "^3.4.0",
"yiisoft/yii2-redis": "^2.0.6",
"nystudio107/craft-imageoptimize": "^1.0.0",
Expand Down Expand Up @@ -36,14 +36,27 @@
],
"scripts": {
"craft-update": [
"@php craft migrate/all",
"@php craft project-config/sync",
"@php craft clear-caches/all"
"@pre-craft-update",
"@post-craft-update"
],
"pre-craft-update": [
"@php craft install/check && php craft off --retry=60 || return 0"
],
"post-craft-update": [
"@php craft install/check && php craft clear-caches/all || return 0",
"@php craft install/check && php craft migrate/all || return 0",
"@php craft install/check && php craft project-config/sync || return 0",
"@php craft install/check && php craft on || return 0"
],
"post-root-package-install": [
"@php -r \"file_exists('.env') || copy('example.env', '.env');\""
"@php -r \"file_exists('.env') || copy('.env.example', '.env');\""
],
"post-create-project-cmd": [
"@php craft setup/welcome"
],
"post-update-cmd": "@craft-update",
"post-install-cmd": "@craft-update"
"pre-update-cmd": "@pre-craft-update",
"pre-install-cmd": "@pre-craft-update",
"post-update-cmd": "@post-craft-update",
"post-install-cmd": "@post-craft-update"
}
}
20 changes: 12 additions & 8 deletions cms/config/app.php
Original file line number Diff line number Diff line change
Expand Up @@ -27,22 +27,26 @@
],
'bootstrap' => ['site-module'],
'components' => [
'cache' => [
'class' => yii\redis\Cache::class,
'redis' => [
'hostname' => App::env('REDIS_HOSTNAME'),
'port' => App::env('REDIS_PORT'),
'database' => App::env('REDIS_CRAFT_DB'),
],
],
'deprecator' => [
'throwExceptions' => App::env('DEV_MODE'),
],
'queue' => [
'class' => craft\queue\Queue::class,
'ttr' => 10 * 60,
],
'redis' => [
'class' => yii\redis\Connection::class,
'hostname' => App::env('REDIS_HOSTNAME'),
'port' => App::env('REDIS_PORT'),
'database' => App::env('REDIS_DEFAULT_DB'),
],
'cache' => [
'class' => yii\redis\Cache::class,
'redis' => [
'hostname' => App::env('REDIS_HOSTNAME'),
'port' => App::env('REDIS_PORT'),
'database' => App::env('REDIS_CRAFT_DB'),
],
],
],
];
1 change: 0 additions & 1 deletion cms/config/general.php
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,6 @@
'backupOnUpdate' => (bool)App::env('BACKUP_ON_UPDATE'),
'devMode' => (bool)App::env('DEV_MODE'),
'enableTemplateCaching' => (bool)App::env('ENABLE_TEMPLATE_CACHING'),
'isSystemLive' => (bool)App::env('IS_SYSTEM_LIVE'),
'resourceBasePath' => App::env('WEB_ROOT_PATH').'/cpresources',
'runQueueAutomatically' => (bool)App::env('RUN_QUEUE_AUTOMATICALLY'),
'securityKey' => App::env('SECURITY_KEY'),
Expand Down
1 change: 0 additions & 1 deletion cms/example.env
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@ BACKUP_ON_UPDATE=0
DEV_MODE=1
ENABLE_TEMPLATE_CACHING=0
ENVIRONMENT=dev
IS_SYSTEM_LIVE=1
RUN_QUEUE_AUTOMATICALLY=1
SECURITY_KEY=EOdiVBONceb8zFGJP7InMui2pMkvNACz

Expand Down
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "craftcms/craft",
"description": "nystudio107 Craft 3.4 CMS scaffolding project",
"version": "2.3.3",
"version": "2.3.4",
"keywords": [
"craft",
"cms",
Expand Down

0 comments on commit 65c13ea

Please sign in to comment.