deploy-stack 0.9.7 → 0.9.8
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/utils/generator.js +6 -6
package/package.json
CHANGED
package/src/utils/generator.js
CHANGED
|
@@ -65,7 +65,7 @@ export async function generateTemplates(targetDir, config) {
|
|
|
65
65
|
} else {
|
|
66
66
|
const existingGitignore = await fs.readFile(targetGitignore, 'utf-8');
|
|
67
67
|
if (!existingGitignore.includes('terraform/.terraform/')) {
|
|
68
|
-
const appendIgnore = '\n# Added by deploy-stack (Terraform)\
|
|
68
|
+
const appendIgnore = '\n# Added by deploy-stack (Terraform)\nterraform/.terraform/\nterraform/*.tfstate\nterraform/*.tfstate.backup\nterraform/.terraform.lock.hcl\nterraform/secret_keys.json\n.env\n';
|
|
69
69
|
await fs.appendFile(targetGitignore, appendIgnore);
|
|
70
70
|
}
|
|
71
71
|
}
|
|
@@ -95,11 +95,11 @@ __pycache__/
|
|
|
95
95
|
function getGitignoreContent(framework) {
|
|
96
96
|
const baseIgnore = `
|
|
97
97
|
# Infrastructure (deploy-stack)
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
secret_keys.json
|
|
98
|
+
terraform/.terraform/
|
|
99
|
+
terraform/*.tfstate
|
|
100
|
+
terraform/*.tfstate.backup
|
|
101
|
+
terraform/.terraform.lock.hcl
|
|
102
|
+
terraform/secret_keys.json
|
|
103
103
|
.env
|
|
104
104
|
|
|
105
105
|
# OS
|