From a35e7f7be0e41ca0488a854cfd23c9dcfeec9167 Mon Sep 17 00:00:00 2001 From: Raphael Date: Mon, 10 Jul 2023 11:56:24 +0000 Subject: Add PM2 deployment config --- ecosystem.config.cjs | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) create mode 100644 ecosystem.config.cjs (limited to 'ecosystem.config.cjs') 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", + }, + }, +}; -- cgit v1.2.3