Browse Source

final

master
lefteris 3 years ago
parent
commit
1ac721330e
  1. 2
      Dockerfile
  2. 4
      swarmlab-app/src/run/app.js

2
Dockerfile

@ -8,6 +8,6 @@ COPY . /usr/src/app
WORKDIR /usr/src/app
RUN npm install pm2 -g
EXPOSE 3000
EXPOSE 3001
CMD ["pm2-runtime", "ecosystem.config.js"]

4
swarmlab-app/src/run/app.js

@ -61,12 +61,12 @@ app.get(
],
cors(corsOptions),
(req, res) => {
var data = req.query["input"];
//var data = req.query["input"];
var RES = new Object();
console.log("dummy logs for fluentd");
console.log("dummy logs for fluentd");
console.error(`Client called GET from axios`);
res.json(data);
res.json("00");
}
);

Loading…
Cancel
Save