port
This commit is contained in:
+7
-2
@@ -37,6 +37,11 @@ async function bootstrap() {
|
||||
app.enableCors();
|
||||
}
|
||||
|
||||
await app.listen(process.env.PORT ?? 4000);
|
||||
const port = Number(process.env.PORT ?? 4000);
|
||||
await app.listen(port, '0.0.0.0');
|
||||
console.log(`grow-api listening on 0.0.0.0:${port}`);
|
||||
}
|
||||
bootstrap();
|
||||
bootstrap().catch((error) => {
|
||||
console.error('Failed to start grow-api:', error);
|
||||
process.exit(1);
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user