Current section
Files
Jump to
Current section
Files
strategies/erlang-deploy-upgrade
#!/usr/bin/env bash
require_deploy_config
set_deploy_hosts
run() {
authorize_hosts
authorize_remote_hosts
select_release_from_store "upgrade"
if [[ "$RELEASE_CMD" = "mix" ]]; then
upload_release_archive "${DELIVER_TO}/${APP}/releases/${VERSION}"
__remote "
set -e
[ -f ~/.profile ] && source ~/.profile
cd ${DELIVER_TO}/${APP}/releases/${VERSION} $SILENCE
mv \"${APP}_${VERSION}.tar.gz\" \"${APP}.tar.gz\"
"
else
upload_release_archive "${DELIVER_TO}/${APP}/releases"
fi
upgrade_release
}