deploy-webapp 1.0.8 → 1.0.12
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/install.js +12 -15
- package/package.json +1 -1
- package/src/utils/ids.csv +1 -2
- package/src/utils/updateWorkflow.json +2 -2
package/install.js
CHANGED
|
@@ -49,21 +49,18 @@ const filesToCopy = [
|
|
|
49
49
|
];
|
|
50
50
|
|
|
51
51
|
// Conteúdo do arquivo migrate.js a ser criado
|
|
52
|
-
const migrateJsContent =
|
|
53
|
-
const { runMigration } = require('deploy-webapp')
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
.
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
.
|
|
63
|
-
|
|
64
|
-
process.exit(1);
|
|
65
|
-
});
|
|
66
|
-
`;
|
|
52
|
+
const migrateJsContent = "require('dotenv').config();\n" +
|
|
53
|
+
"const { runMigration } = require('deploy-webapp');\n\n" +
|
|
54
|
+
"console.log('🚀 Iniciando deploy...');\n\n" +
|
|
55
|
+
"runMigration()\n" +
|
|
56
|
+
" .then(() => {\n" +
|
|
57
|
+
" console.log('\\n✅ Deploy concluído com sucesso!');\n" +
|
|
58
|
+
" process.exit(0);\n" +
|
|
59
|
+
" })\n" +
|
|
60
|
+
" .catch((error) => {\n" +
|
|
61
|
+
" console.error('\\n❌ Erro no deploy:', error);\n" +
|
|
62
|
+
" process.exit(1);\n" +
|
|
63
|
+
" });\n";
|
|
67
64
|
|
|
68
65
|
// Conteúdo do arquivo .env template a ser criado
|
|
69
66
|
const envTemplateContent = `# Configurações Gerais
|
package/package.json
CHANGED
package/src/utils/ids.csv
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
{
|
|
2
|
-
"flow_form_id": "
|
|
3
|
-
"updateWorkflowProtocolFunction": "
|
|
2
|
+
"flow_form_id": "",
|
|
3
|
+
"updateWorkflowProtocolFunction": ""
|
|
4
4
|
}
|