summaryrefslogtreecommitdiff
path: root/ecosystem.config.cjs
diff options
context:
space:
mode:
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",
+ },
+ },
+};