Skip to content

Commit

Permalink
chore: Add support for running with PM2
Browse files Browse the repository at this point in the history
  • Loading branch information
TAEMBO committed May 25, 2024
1 parent cd940d3 commit 43cc0a2
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions ecosystem.config.cjs
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
require("dotenv/config");

// We use this file when working with PM2 for compatibility when loading ENV variable(s)
// as a replacement for `npm run start`
module.exports = {
apps: [
{
name: "Livemap",
script: "build/index.js",
env: {
PORT: process.env.PORT
}
}
]
}

0 comments on commit 43cc0a2

Please # to comment.