summaryrefslogtreecommitdiff
path: root/ecosystem.config.cjs
diff options
context:
space:
mode:
authorRaphael <mail@raphaelkabo.com>2023-10-08 19:12:44 +0100
committerGitHub <noreply@github.com>2023-10-08 19:12:44 +0100
commit9ef8e220b4fb582d620016d293b340a63ec97cff (patch)
tree15fd6a9ce4921d88c262fbcdfa7c5a67c6be71c4 /ecosystem.config.cjs
parenta14afed944e5f0b87af96cc5c6a262d246b88d1d (diff)
parentad1ca77aaf9b8700f3341cab1d177e7ab7643048 (diff)
Merge pull request #103 from lowercasename/pm2-ci
Add PM2 deployment config
Diffstat (limited to 'ecosystem.config.cjs')
-rw-r--r--ecosystem.config.cjs24
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",
+ },
+ },
+};