Upload 2 files
Browse files- 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 ||
|
252 |
-
app.listen(PORT, () => {
|
253 |
-
console.log(`服务器运行在 http://
|
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 |
})
|