Skip to content

Commit ad9b0a0

Browse files
author
Andrew Welch
committed
Merge branch 'release/2.6.1' into devmode-vite
2 parents 8248562 + 18e62d8 commit ad9b0a0

File tree

9 files changed

+990
-60389
lines changed

9 files changed

+990
-60389
lines changed

CHANGELOG.md

+10
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,15 @@
11
# nystudio107/devmode Change Log
22

3+
## 2.6.1 - 2022.04.13
4+
### Added
5+
* Added Craft CMS 4 db dump
6+
* Added `config/custom.php` for custom config settings
7+
8+
### Changed
9+
* Added compressed `.gz` db dump support
10+
* Set `enableLogging` and `enableProfiling` in `config/db.php`
11+
* Use `"eslint": "^7.0.0"` to avoid package version conflicts with `vite-plugin-eslint`
12+
313
## 2.6.0 - 2022.04.08
414
### Changed
515
* Switched over to Craft CMS 4.0.0-beta.4

buildchain/package-lock.json

+870-1,115
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

buildchain/package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@
4444
"@typescript-eslint/parser": "^5.0.0",
4545
"@vitejs/plugin-legacy": "^1.3.3",
4646
"autoprefixer": "^10.4.0",
47-
"eslint": "^8.0.0",
47+
"eslint": "^7.0.0",
4848
"eslint-plugin-vue": "^8.0.0",
4949
"postcss": "^8.0.0",
5050
"rollup-plugin-critical": "^1.0.4",

cms/composer.lock

+84-47
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

cms/config/custom.php

+12
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
<?php
2+
/**
3+
* Custom Configuration
4+
*
5+
* You can now set your own config settings—as opposed to those Craft supports—from config/custom.php.
6+
* Any of your custom config settings will be accessible via Craft::$app->config->{mycustomsetting}.
7+
*
8+
* @see https://craftcms.com/docs/4.x/upgrade.html#configuration
9+
*/
10+
11+
return [
12+
];

cms/config/db.php

+2
Original file line numberDiff line numberDiff line change
@@ -20,4 +20,6 @@
2020
'password' => App::env('DB_PASSWORD'),
2121
'schema' => App::env('DB_SCHEMA'),
2222
'tablePrefix' => App::env('DB_TABLE_PREFIX'),
23+
'enableLogging' => false,
24+
'enableProfiling' => (bool)App::env('DEV_MODE'),
2325
];

db-seed/db_init.sh

+11-3
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,15 @@ do
1515
echo "GRANT ALL PRIVILEGES ON DATABASE $POSTGRES_DB TO $POSTGRES_DB ;" | "${pgsql[@]}"
1616
# Add the database name to the command
1717
pgsql+=( "$POSTGRES_DB" )
18-
echo "### Seeding database \`$POSTGRES_DB\`"
19-
cat "/docker-entrypoint-initdb.d/$POSTGRES_DB_SEED_DIR/$POSTGRES_DB.sql" | "${pgsql[@]}" >/dev/null
20-
echo "### \`$POSTGRES_DB\` database seeded"
18+
DB_SEED_PATH="/docker-entrypoint-initdb.d/$POSTGRES_DB_SEED_DIR/$POSTGRES_DB"
19+
if [ -f "$DB_SEED_PATH.sql" ]; then
20+
echo "### Seeding database with \`$DB_SEED_PATH.sql\`"
21+
cat "$DB_SEED_PATH.sql" | "${pgsql[@]}" >/dev/null
22+
echo "### \`$POSTGRES_DB\` database seeded"
23+
fi
24+
if [ -f "$DB_SEED_PATH.sql.gz" ]; then
25+
echo "### Seeding database with \`$DB_SEED_PATH.sql.gz\`"
26+
zcat "$DB_SEED_PATH.sql.gz" | "${pgsql[@]}" >/dev/null
27+
echo "### \`$POSTGRES_DB\` database seeded"
28+
fi
2129
done

0 commit comments

Comments
 (0)