This commit is contained in:
2026-07-10 15:00:59 +03:30
parent 83f8db336e
commit 3e79cb69b3
+7 -2
View File
@@ -37,6 +37,11 @@ async function bootstrap() {
app.enableCors(); 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);
});