From 756da57e844928ba1a6311d30a5fa0724c705f70 Mon Sep 17 00:00:00 2001 From: Girish Ramakrishnan Date: Thu, 23 Jul 2015 13:09:10 -0700 Subject: [PATCH] Copy over installer --- deploy.json | 3 ++- prepareDeployTarget.sh | 4 ++++ 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/deploy.json b/deploy.json index c50809b..2c10c7f 100644 --- a/deploy.json +++ b/deploy.json @@ -12,7 +12,8 @@ "ecosystem": "../keys/ci/ecosystem-prod.json", "assets": { "sshKey": "../keys/ci/id_rsa", - "sshPub": "../keys/ci/id_rsa.pub" + "sshPub": "../keys/ci/id_rsa.pub", + "installer": "../installer" } } } diff --git a/prepareDeployTarget.sh b/prepareDeployTarget.sh index 9ecce06..1d70208 100644 --- a/prepareDeployTarget.sh +++ b/prepareDeployTarget.sh @@ -52,6 +52,10 @@ sudo sed -e 's/SHOWWARNING=true/# SHOWWARNING=true/' -i /etc/tmpreaper.conf sudo npm install -g pm2 pm2-run forever sudo rm -rf ~/.npm # .npm will get owned by root after "sudo npm install -g" +# installer +mv /tmp/installer "${HOME}" +cd "${HOME}/installer" && npm install && npm rebuild + # create deploy directories mkdir -p "${APP_DIR}"