dan92 commited on
Commit
ce8ed19
·
verified ·
1 Parent(s): f66aefe

Upload 2 files

Browse files
Files changed (1) hide show
  1. src/index.js +3 -3
src/index.js CHANGED
@@ -248,7 +248,7 @@ app.use(async (ctx, next) => {
248
  })
249
 
250
  // 启动服务器
251
- const PORT = process.env.PORT || 8666
252
- app.listen(PORT, () => {
253
- console.log(`服务器运行在 http://localhost:${PORT}`);
254
  })
 
248
  })
249
 
250
  // 启动服务器
251
+ const PORT = process.env.PORT || 3000
252
+ app.listen(PORT, '0.0.0.0', () => {
253
+ console.log(`服务器运行在 http://0.0.0.0:${PORT}`);
254
  })