hydro cli

This commit is contained in:
undefined committed 2020-07-23 18:08:45 +08:00
1 parent 9e96c471af
commit 81868cafbb
11 files changed
+243 -160

No files matched your search

+3 -3
View File
@@ -2,7 +2,7 @@
import assert from 'assert';
import path from 'path';
import os from 'os';
import http, { Server } from 'http';
import http from 'http';
import moment from 'moment-timezone';
import { isSafeInteger, Dictionary } from 'lodash';
import { ObjectID } from 'mongodb';
@@ -776,8 +776,8 @@ export async function start() {
}
app.use(router.routes()).use(router.allowedMethods());
Route('notfound_handler', '*', Handler);
server.listen(global.argv.port || port);
console.log('Server listening at: %s', global.argv.port || port);
server.listen(argv.port || port);
console.log('Server listening at: %s', argv.port || port);
}
global.Hydro.service.server = {