Skip to content

Instantly share code, notes, and snippets.

@joewilliams
Created October 16, 2010 01:21
Show Gist options
  • Save joewilliams/629261 to your computer and use it in GitHub Desktop.
Save joewilliams/629261 to your computer and use it in GitHub Desktop.
cp -R path/to/old/release app_0.9
cp -R path/to/new/release app_1.0
cp app_1.0/releases/1.0/app.rel app_1.0.rel
LIBPATH="app_0.9/releases/*/ */lib/*/ebin"
erl +Bd -noinput -noshell -pa $LIBPATH -eval 'systools:make_relup("app_1.0", ["app"], ["app"])' -run init stop
erl +Bd -noinput -noshell -pa $LIBPATH -eval 'systools:make_script("app_1.0", [] )' -run init stop
erl +Bd -noinput -noshell -pa $LIBPATH -eval 'systools:make_tar("app_1.0")' -run init stop
tar zxvf app_1.0.tar.gz
cp app_1.0/releases/1.0/start_clean.boot releases/1.0/
cd releases/1.0/
ln -s start.boot app.boot
cd ../..
tar zcvf app_1.0.tar.gz lib releases
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment