@webhikers/cli 1.1.18 → 1.1.19
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/commands/create.js +8 -2
package/package.json
CHANGED
package/src/commands/create.js
CHANGED
|
@@ -174,7 +174,7 @@ export async function createCommand(name) {
|
|
|
174
174
|
});
|
|
175
175
|
console.log(c.green(" ✓ Coolify project configured"));
|
|
176
176
|
|
|
177
|
-
// --- 7. Write .deploy.json ---
|
|
177
|
+
// --- 7. Write .deploy.json + enable sync guard ---
|
|
178
178
|
console.log(c.cyan("\n5/5 Writing .deploy.json..."));
|
|
179
179
|
const deployConfig = {
|
|
180
180
|
serverIp: config.serverIp,
|
|
@@ -187,7 +187,13 @@ export async function createCommand(name) {
|
|
|
187
187
|
JSON.stringify(deployConfig, null, 2) + "\n",
|
|
188
188
|
"utf-8"
|
|
189
189
|
);
|
|
190
|
-
|
|
190
|
+
writeFileSync(
|
|
191
|
+
resolve(projectDir, ".sync-guard.json"),
|
|
192
|
+
JSON.stringify({ enabled: true, lastPull: null }, null, 2) + "\n",
|
|
193
|
+
"utf-8"
|
|
194
|
+
);
|
|
195
|
+
run(`git add .deploy.json .sync-guard.json && git commit -m "Enable sync guard + deploy config" && git push`, { cwd: projectDir });
|
|
196
|
+
console.log(c.green(" ✓ .deploy.json + sync guard written"));
|
|
191
197
|
|
|
192
198
|
// --- 8. Summary ---
|
|
193
199
|
console.log("\n" + c.green("═══════════════════════════════════════════"));
|