A test repo OTP application for bin/START upgrade VERSION failed when using sys.config.src and vm.args.src #2208
git clone https://github.com/qingchuwudi/test_script
download rebar3:
cd test_script
wget https://s3.amazonaws.com/rebar3/rebar3 && chmod +x ./rebar3
export TEST_SCRIPT_NODE_NAME=hello_2208
export TEST_CONF="\"hello_conf\""
package:
git checkout 0.1.0
rebar3 as prod tar
run:
mkdir /tmp/test_script
tar xzf `pwd`/_build/prod/rel/test_script/test_script-0.1.0.tar.gz -C /tmp/test_script/
/tmp/test_script/bin/test_script start
check:
$ /tmp/test_script/bin/test_script versions
Installed versions:
* 0.1.0 permanent
package:
git checkout 0.1.1
rebar3 as prod release
rebar3 as prod appup generate --previous_version 0.1.0
rebar3 as prod relup tar
install (or upgrade):
cp `pwd`/_build/prod/rel/test_script/test_script-0.1.1.tar.gz /tmp/test_script/releases/
/tmp/test_script/bin/test_script install 0.1.1
check(if not crash):
$ /tmp/test_script/bin/test_script versions
Installed versions:
* 0.1.1 permanent
* 0.1.0 old