Use cloudron-cli as a asset just like release

This commit is contained in:
Johannes Zellner 2016-06-30 16:26:29 +02:00
parent 0ad8e9f526
commit 72998cf818
2 changed files with 8 additions and 3 deletions

View File

@ -11,7 +11,8 @@
"remote": "ssh://ubuntu@ci.cloudron.io/home/ubuntu/app.git",
"ecosystem": "../secrets/e2e-test/ecosystem-staging.json",
"assets": {
"release": "../release"
"release": "../release",
"cloudron": "../cloudron-cli"
}
}
}

View File

@ -50,13 +50,17 @@ apt-get install -y tmpreaper
sed -e 's/SHOWWARNING=true/# SHOWWARNING=true/' -i /etc/tmpreaper.conf
# install pm2
npm install -g pm2 pm2-run forever cloudron
npm install -g pm2 pm2-run forever
rm -rf ~/.npm # .npm will get owned by root after "npm install -g"
# installer
# release tool
rm -rf "${HOME}/release" && mv /tmp/release "${HOME}"
cd "${HOME}/release" && npm install && npm rebuild
# cloudron tool
rm -rf "${HOME}/cloudron-cli" && mv /tmp/cloudron-cli "${HOME}"
cd "${HOME}/cloudron-cli" && npm install && npm rebuild && npm link
# create deploy directories
mkdir -p "${APP_DIR}"