diff options
author | joewilliams <joe@joetify.com> | 2011-02-10 13:27:29 -0800 |
---|---|---|
committer | Tuncer Ayaz <tuncer.ayaz@gmail.com> | 2011-02-15 18:33:18 +0100 |
commit | 11bf6b4aab33c273f0db94bded8763af68cbc167 (patch) | |
tree | 659ba5e779cb938185df23409b61617a46f619dc /test/upgrade_project | |
parent | 9ee8ed91812f22e6e84887ba006f3a5c37457fcc (diff) |
Add 'generate-appups' command
To further support OTP releases I have added support for generating
application appup files. These include instructions that systools uses
to generate a relup file which contains the low level instructions
needed to perform a hot code upgrade. My goal with this module is to
produce "good enough" appup files or at least a skeleton to help one get
started with something more complex. If an appup file already exists for
an application this command will not attempt to create a new one.
Usage:
$ rebar generate-appups previous_release=/path/to/old/version
Generally this command will be run just before 'generate-upgrade'.
Diffstat (limited to 'test/upgrade_project')
-rw-r--r-- | test/upgrade_project/README.md | 1 | ||||
-rw-r--r-- | test/upgrade_project/apps/dummy/ebin/dummy.appup | 8 |
2 files changed, 1 insertions, 8 deletions
diff --git a/test/upgrade_project/README.md b/test/upgrade_project/README.md index cf753e8..4ab439b 100644 --- a/test/upgrade_project/README.md +++ b/test/upgrade_project/README.md @@ -21,6 +21,7 @@ rebar compile rebar generate + rebar generate-appups previous_release=dummy_0.1 rebar generate-upgrade previous_release=dummy_0.1 tar -zvtf rel/dummy_0.2.tar.gz diff --git a/test/upgrade_project/apps/dummy/ebin/dummy.appup b/test/upgrade_project/apps/dummy/ebin/dummy.appup deleted file mode 100644 index e77f66f..0000000 --- a/test/upgrade_project/apps/dummy/ebin/dummy.appup +++ /dev/null @@ -1,8 +0,0 @@ -{"0.2", - [{"0.1",[ - {update, dummy_server, {advanced, [foo]}} - ]}], - [{"0.1",[ - {update, dummy_server, {advanced, [foo]}} - ]}] -}. |