From a82ab378c034daab1de267726931e17887cce62f Mon Sep 17 00:00:00 2001 From: Zoe Snow Date: Sat, 29 Jul 2017 15:37:24 -0600 Subject: [PATCH] Adding env var --- ecosystem.json | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ecosystem.json b/ecosystem.json index 6ceed76..5bff2ce 100644 --- a/ecosystem.json +++ b/ecosystem.json @@ -21,7 +21,7 @@ "repo": "git@github.com:LearnNavi/Naranawm.git", "path": "/opt/Naranawm", "ssh_options": "StrictHostKeyChecking=no", - "post-deploy": "npm install && ./bin/rebuild && pm2 startOrRestart ecosystem.json --env production", + "post-deploy": "export NODE_ENV=kenten && npm install && ./bin/rebuild && pm2 startOrRestart ecosystem.json --env production", "env": { "NODE_ENV": "production" } @@ -36,7 +36,7 @@ "path": "/opt/Naranawm", "ssh_options": "StrictHostKeyChecking=no", "post-setup": "git-crypt unlock ~/Naranawm.key", - "post-deploy": "npm install && ./bin/rebuild && pm2 startOrRestart ecosystem.json --env kenten", + "post-deploy": "export NODE_ENV=kenten && npm install && ./bin/rebuild && pm2 startOrRestart ecosystem.json --env kenten", "env": { "NODE_ENV": "kenten" }