Use cloudron-cli as a asset just like release
This commit is contained in:
parent
0ad8e9f526
commit
72998cf818
@ -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"
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -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}"
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user