diff options
author | Raphael <raphaelkabo@gmail.com> | 2023-07-10 11:56:24 +0000 |
---|---|---|
committer | Raphael Kabo <raphaelkabo@hey.com> | 2023-10-08 14:56:37 +0100 |
commit | a35e7f7be0e41ca0488a854cfd23c9dcfeec9167 (patch) | |
tree | 512d1eee5cb1fb9adafb2a7e928cb2f5bd9adbc6 /ecosystem.config.cjs | |
parent | a14afed944e5f0b87af96cc5c6a262d246b88d1d (diff) |
Add PM2 deployment config
Diffstat (limited to 'ecosystem.config.cjs')
-rw-r--r-- | ecosystem.config.cjs | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/ecosystem.config.cjs b/ecosystem.config.cjs new file mode 100644 index 0000000..ac93da8 --- /dev/null +++ b/ecosystem.config.cjs @@ -0,0 +1,24 @@ +module.exports = { + apps: [ + { + name: "gathio-prod", + script: "pnpm start", + watch: false, + instances: 1, + autorestart: true, + max_restarts: 10, + max_memory_restart: "512M", + }, + ], + + deploy: { + production: { + user: "raphael", + host: "gath.io", + ref: "origin/main", + repo: "git@github.com:lowercasename/gathio", + path: "/home/raphael/gathio-production", + "post-deploy": "./deploy.sh", + }, + }, +}; |