Skip to content

Commit

Permalink
feat: script main.js
Browse files Browse the repository at this point in the history
  • Loading branch information
kungfuboy committed Jan 4, 2023
1 parent 45be2ed commit 6692e26
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/workbench/node/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
"start": "pm2-runtime start ./server/main.js",
"start:io": "pm2-runtime start ./server/socketio.js",
"start:all": "yarn start && yarn start:io",
"start:all:pm2": "pm2 start ./server/main.js && pm2 start ./server/socketio.js",
"start:all:pm2": "pm2 start ./server/main.js",
"watch": "pm2 list",
"stop": "pm2 stop all",
"test": "echo \"Error: no test specified\" && exit 1"
Expand Down
3 changes: 2 additions & 1 deletion src/workbench/node/server/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,10 +8,11 @@ const _LibsCommon = require('../request/libs/common.js');
const koaBody = require('koa-body');
const Koa = require('koa');
const cors = require('@koa/cors');
const socketio = require('./socketio');
const socketio = require('./socketio.js');

const app = new Koa();
const port = process.env.TEST_SERVER_PORT || 4201;
console.log(port);

app.use(cors());
app.use(koaBody());
Expand Down

0 comments on commit 6692e26

Please sign in to comment.