@rpcbase/cli 0.187.0 → 0.188.0
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.
- package/package.json +1 -1
- package/src/cmd-deploy/index.js +10 -2
package/package.json
CHANGED
package/src/cmd-deploy/index.js
CHANGED
|
@@ -43,6 +43,14 @@ const sharedInfrastructureIncludePatterns = [
|
|
|
43
43
|
|
|
44
44
|
const sharedInfrastructureExcludePatterns = [
|
|
45
45
|
"/infrastructure/data/***",
|
|
46
|
+
"/infrastructure/mongot/config.yml",
|
|
47
|
+
"/infrastructure/mongot/passwordFile",
|
|
48
|
+
]
|
|
49
|
+
|
|
50
|
+
const generatedInfrastructureExcludePatterns = [
|
|
51
|
+
"data/",
|
|
52
|
+
"mongot/config.yml",
|
|
53
|
+
"mongot/passwordFile",
|
|
46
54
|
]
|
|
47
55
|
|
|
48
56
|
const toArray = (value) => {
|
|
@@ -147,7 +155,7 @@ const prepareDeploySource = ({
|
|
|
147
155
|
const infrastructureRsyncCmd = [
|
|
148
156
|
"rsync -a",
|
|
149
157
|
"--delete",
|
|
150
|
-
buildRsyncFilterArgs({ excludes: baseExcludeList.concat(
|
|
158
|
+
buildRsyncFilterArgs({ excludes: baseExcludeList.concat(generatedInfrastructureExcludePatterns).concat(excludePatterns) }),
|
|
151
159
|
shellQuote(withTrailingSlash(infrastructureDir)),
|
|
152
160
|
shellQuote(withTrailingSlash(deployInfrastructureDir)),
|
|
153
161
|
].filter(Boolean).join(" ")
|
|
@@ -404,7 +412,7 @@ export const deploy = async (argv) => {
|
|
|
404
412
|
syncSharedEnvFiles(deployRoot, preparedDeploy.sharedEnvFileNames)
|
|
405
413
|
|
|
406
414
|
const infrastructureExcludeArgs = baseExcludeList
|
|
407
|
-
.concat(
|
|
415
|
+
.concat(generatedInfrastructureExcludePatterns)
|
|
408
416
|
.concat(deployExcludePatterns)
|
|
409
417
|
|
|
410
418
|
const infrastructureRsyncCmd = [
|