mirror of
https://github.com/whyour/qinglong.git
synced 2025-05-22 22:36:06 +08:00
后端服务指定 ipv4 端口启动
This commit is contained in:
parent
07541569c5
commit
a68f4b0cde
|
@ -15,7 +15,7 @@ async function startServer() {
|
|||
await require('./loaders/app').default({ expressApp: app });
|
||||
|
||||
const server = app
|
||||
.listen(config.port, () => {
|
||||
.listen(config.port, '0.0.0.0', () => {
|
||||
Logger.debug(`✌️ 后端服务启动成功!`);
|
||||
console.debug(`✌️ 后端服务启动成功!`);
|
||||
process.send?.('ready');
|
||||
|
|
|
@ -21,7 +21,7 @@ app.get('/api/health', (req, res) => {
|
|||
});
|
||||
|
||||
app
|
||||
.listen(config.publicPort, async () => {
|
||||
.listen(config.publicPort, '0.0.0.0', async () => {
|
||||
await require('./loaders/sentry').default({ expressApp: app });
|
||||
await require('./loaders/db').default();
|
||||
|
||||
|
|
|
@ -12,7 +12,7 @@ async function startServer() {
|
|||
await require('./loaders/update').default({ app });
|
||||
|
||||
app
|
||||
.listen(config.updatePort, () => {
|
||||
.listen(config.updatePort, '0.0.0.0', () => {
|
||||
Logger.debug(`✌️ 更新服务启动成功!`);
|
||||
console.debug(`✌️ 更新服务启动成功!`);
|
||||
process.send?.('ready');
|
||||
|
|
Loading…
Reference in New Issue
Block a user