forked from extern/podman-compose
do not merge command array
This commit is contained in:
@ -8,9 +8,9 @@ async function loop() {
|
||||
try {
|
||||
task_desc = JSON.parse(task_desc_s);
|
||||
} catch (e) {
|
||||
proj.logger.exception(e);
|
||||
console.exception(e);
|
||||
}
|
||||
proj.logger.info("got task "+task_desc.func);
|
||||
console.info("got task "+task_desc.func);
|
||||
const func = task_desc.func;
|
||||
const args = task_desc.args;
|
||||
if (typeof(proj.tasks[func])!="function") {
|
||||
|
@ -7,7 +7,6 @@ import express from "express";
|
||||
|
||||
export async function start() {
|
||||
const app = express();
|
||||
app.use(proj.logger.express_logger);
|
||||
const server = http.createServer(app);
|
||||
|
||||
// Routing
|
||||
@ -17,6 +16,6 @@ export async function start() {
|
||||
});
|
||||
|
||||
server.listen(proj.config.LISTEN_PORT, proj.config.LISTEN_HOST, function() {
|
||||
proj.logger.warn(`listening at port ${proj.config.LISTEN_PORT}`);
|
||||
console.warn(`listening at port ${proj.config.LISTEN_PORT}`);
|
||||
});
|
||||
}
|
||||
|
Reference in New Issue
Block a user