Add Docker Build Script

This commit is contained in:
copecone committed 2026-03-17 13:40:28 +09:00
1 parent 99fd518ddb
commit 88f72e767f
14 files changed
+77 -17

No files matched your search

+5 -3
View File
@@ -50,13 +50,15 @@ app.use((req, res, next) => {
* The server listens on the port defined by the `PORT` environment variable, or defaults to 4000.
*/
if (isMainModule(import.meta.url) || process.env['pm_id']) {
const port = process.env['PORT'] || 4000;
app.listen(port, (error) => {
const port = parseInt(process.env['PORT'] || '4000');
const host = '0.0.0.0';
app.listen(port, host, (error) => {
if (error) {
throw error;
}
console.log(`Node Express server listening on http://localhost:${port}`);
console.log(`Node Express server listening...`);
});
}