Skip to content

Commit

Permalink
Give fewer memory to node
Browse files Browse the repository at this point in the history
  • Loading branch information
TimDaub committed Nov 26, 2024
1 parent 54519b1 commit 5625731
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions ecosystem.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,9 @@ module.exports = {
apps: [
{
name: "kiwinews",
script: "npm run start",
script: "./src/launch.mjs",
env: {
DEBUG: "*attestate*",
NODE_PATH: "./node_modules",
NODE_ENV: "production",
THEME: "kiwi",
HTTP_PORT: 3000,
Expand All @@ -18,8 +18,7 @@ module.exports = {
SSL_CERT_PATH: "/etc/letsencrypt/live/news.kiwistand.com/fullchain.pem",
SSL_KEY_PATH: "/etc/letsencrypt/live/news.kiwistand.com/privkey.pem",
},
time: true,
node_args: "--max-old-space-size=12288",
node_args: "-r dotenv/config --max-old-space-size=4096",
},
],
};

0 comments on commit 5625731

Please sign in to comment.