Upward (upward v0.0.7)
View SourceUpward is a library to assist with hot-code upgrades with Elixir releases.
This module manages the building and installing of releases.
Most functions print messages to the console as they are executed.
Summary
Functions
Automatically generate an appup file for a patch release based on the previous release in your build directory.
Downgrade or rollback to the previous patch release.
Install a new release.
Prints a list of all the current releases along with their status.
Upgrade to the next patch release.
Functions
Automatically generate an appup file for a patch release based on the previous release in your build directory.
This should be added as a step in your release steps.
def releases do
[
my_app: [
include_executables_for: [:unix],
steps: [:assemble, &Upward.auto_appup/1 :tar]
]
]
end
Downgrade or rollback to the previous patch release.
This will not downgrade to before x.y.0
Run in your release directory using:
bin/my_app rpc 'Upward.downgrade()'
Install a new release.
You need to extract the tarball generated by the release into your release directory before running this command. There needs to be an appup file generated between the current running version and the version you select to install.
Run in your release directory using:
bin/my_app rpc 'Upward.install("1.0.1")'
Prints a list of all the current releases along with their status.
See also Upward.Releases.releases/0
Upgrade to the next patch release.
You must have already extracted the tarball generated by the release into your release directory before running this command.
There needs to be an appup file generated between the current running version and the next patch version.
This would be automatically generated within your release by using &Upward.auto_appup/1
in your release steps.
Run in your release directory using:
bin/my_app rpc 'Upward.upgrade()'