genbox 1.0.70 → 1.0.71
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/dist/commands/rebuild.js +9 -0
- package/package.json +1 -1
package/dist/commands/rebuild.js
CHANGED
|
@@ -811,6 +811,15 @@ exports.rebuildCommand = new commander_1.Command('rebuild')
|
|
|
811
811
|
}
|
|
812
812
|
// Get git token from env
|
|
813
813
|
const envVars = configLoader.loadEnvVars(process.cwd());
|
|
814
|
+
// Notify API that rebuild is starting (set status to provisioning)
|
|
815
|
+
try {
|
|
816
|
+
await (0, api_1.fetchApi)(`/genboxes/${genbox._id}/soft-rebuild-started`, {
|
|
817
|
+
method: 'POST',
|
|
818
|
+
});
|
|
819
|
+
}
|
|
820
|
+
catch {
|
|
821
|
+
// Silently ignore - status update is not critical
|
|
822
|
+
}
|
|
814
823
|
// Run soft rebuild
|
|
815
824
|
console.log('');
|
|
816
825
|
console.log(chalk_1.default.blue(`=== Starting ${options.hard ? 'Hard' : 'Soft'} Rebuild ===`));
|