@scandipwa/magento-scripts 2.0.1 → 2.0.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -5,7 +5,7 @@ const UnknownError = require('../../../errors/unknown-error');
|
|
|
5
5
|
* @returns {import('listr2').ListrTask<import('../../../../typings/context').ListrContext>}
|
|
6
6
|
*/
|
|
7
7
|
module.exports = () => ({
|
|
8
|
-
title: 'Flushing Magento
|
|
8
|
+
title: 'Flushing Magento Redis cache',
|
|
9
9
|
task: async ({ ports, config: { docker }, isDockerDesktop }) => {
|
|
10
10
|
const { redis: { name } } = docker.getContainers(ports);
|
|
11
11
|
const host = !isDockerDesktop ? 'localhost' : 'host.docker.internal';
|
|
@@ -32,10 +32,10 @@ const setupMagento = (options = {}) => ({
|
|
|
32
32
|
}
|
|
33
33
|
|
|
34
34
|
return task.newListr([
|
|
35
|
-
flushRedisConfig(),
|
|
36
35
|
waitingForRedis(),
|
|
37
36
|
updateEnvPHP(),
|
|
38
37
|
migrateDatabase(),
|
|
38
|
+
flushRedisConfig(),
|
|
39
39
|
{
|
|
40
40
|
title: 'Configuring Magento settings',
|
|
41
41
|
task: (ctx, task) => task.newListr([
|
|
@@ -48,11 +48,11 @@ const varnishConfigSetup = () => ({
|
|
|
48
48
|
`);
|
|
49
49
|
|
|
50
50
|
// update cache policy to not use varnish
|
|
51
|
-
//
|
|
51
|
+
// 1 - magento cache, 2 - varnish cache
|
|
52
52
|
await updateTableValues('core_config_data', [
|
|
53
53
|
{
|
|
54
54
|
path: 'system/full_page_cache/caching_application',
|
|
55
|
-
value: '
|
|
55
|
+
value: '1'
|
|
56
56
|
}
|
|
57
57
|
], { databaseConnection, task });
|
|
58
58
|
}
|
package/package.json
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
"description": "Scripts and configuration used by CMA.",
|
|
4
4
|
"homepage": "https://docs.create-magento-app.com/",
|
|
5
5
|
"repository": "github:scandipwa/create-magento-app",
|
|
6
|
-
"version": "2.0.
|
|
6
|
+
"version": "2.0.2",
|
|
7
7
|
"main": "./index.js",
|
|
8
8
|
"types": "./typings/index.d.ts",
|
|
9
9
|
"license": "OSL-3.0",
|
|
@@ -54,5 +54,5 @@
|
|
|
54
54
|
"mysql",
|
|
55
55
|
"scandipwa"
|
|
56
56
|
],
|
|
57
|
-
"gitHead": "
|
|
57
|
+
"gitHead": "676d083e666a985e1942a7b1d216ca6d6b6151f8"
|
|
58
58
|
}
|