@webqit/webflo 0.11.49 → 0.11.50
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
CHANGED
|
@@ -95,7 +95,6 @@ export async function deploy(origin) {
|
|
|
95
95
|
var _date = (new Date).toUTCString();
|
|
96
96
|
cx.logger.success(cx.logger.f`[${cx.logger.style.comment(_date)}][AUTODEPLOY] Successfully deployed: ${origin.tag + '@' + origin.branch} - ${url} to ${origin.deploy_path}!`);
|
|
97
97
|
cx.logger.success(cx.logger.f`[${cx.logger.style.comment(_date)}][AUTODEPLOY] On-deploy script: ${origin.ondeploy}!`);
|
|
98
|
-
cx.logger.log('');
|
|
99
98
|
}
|
|
100
99
|
if ((origin.ondeploy || '').trim()) {
|
|
101
100
|
const run = cmd => new Promise((resolve, reject) => {
|
|
@@ -191,12 +190,12 @@ export async function webhook(httpEvent, router, next) {
|
|
|
191
190
|
if (cx.logger) {
|
|
192
191
|
cx.logger.log('');
|
|
193
192
|
var _date = (new Date).toUTCString();
|
|
194
|
-
cx.logger.success(cx.logger.f`[${cx.logger.style.comment(_date)}][AUTODEPLOY] Exiting
|
|
193
|
+
cx.logger.success(cx.logger.f`[${cx.logger.style.comment(_date)}][AUTODEPLOY] Exiting(${exitCode})...`);
|
|
195
194
|
cx.logger.log('');
|
|
196
195
|
}
|
|
197
196
|
setTimeout(() => {
|
|
198
197
|
process.exit(exitCode);
|
|
199
|
-
}, _isNumeric(deployParams.ondeploy_autoexit) ? parseInt(deployParams.ondeploy_autoexit) :
|
|
198
|
+
}, _isNumeric(deployParams.ondeploy_autoexit) ? parseInt(deployParams.ondeploy_autoexit) : 0);
|
|
200
199
|
}
|
|
201
200
|
resolve(
|
|
202
201
|
new httpEvent.Response(`Deployment ${ exitCode === 0 ? 'success' : 'error: ' + exitCode }!`, { status: exitCode === 0 ? 200 : 500 })
|