Created
October 16, 2010 01:21
-
-
Save joewilliams/629261 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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