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}"