summaryrefslogtreecommitdiff
path: root/test/upgrade_project
Commit message (Collapse)AuthorAgeFilesLines
* Fix #544Cesar Crusius2015-09-171-4/+1
| | | | | | | | | 'whoami' is not POSIX-compliant, but 'id -un' is. This is true at least since the 1003.1-2001 standard, I don't have a copy of the previous 1003.2-1992 to verify it is true there too. This causes problems in recent operating systems where 'whoami' is not even shipped anymore.
* Exit with proper status code if 'eval' failsRoberto Aloi2015-01-231-0/+4
|
* Fixed #133. Release upgrade handle long and short names properly.Сергей Прохоров2015-01-201-4/+1
| | | | | | Implemented, by moving upgrade functionality from install_upgrade.escript to nodetool, which already supports both short and long names. Make install_upgrade.escript as wrapper for nodetool for backward compatibility.
* Additional fixes and modificationFred Hebert2014-11-211-3/+8
| | | | | | - Updating documentation to be more accurate - Style fixes - More precise error messages
* Merge branch 'fix_upgrade_error' of https://github.com/terrencehan/rebar ↵Fred Hebert2014-11-211-0/+5
|\ | | | | | | into terrencehan-fix_upgrade_error
| * Fix upgrade errorterrencehan2014-06-201-0/+5
| |
* | Implement eval command via nodetoolRoberto Aloi2014-10-212-2/+34
|/
* Sync test/upgrade_project/rel/files with priv/templatesTuncer Ayaz2013-06-125-66/+210
|
* Use "pwd -P" to get the current physical path.olgeni2013-06-102-2/+2
| | | | | | | | | | | | | | It is a portable version of the realpath(1) utility that you can find on Mac OS X and FreeBSD (see also The Open Group Base Specifications Issue 6, IEEE Std 1003.1). Without the -P flag, pwd(1) might return different values when the current path contains one or more symlinks, depending on how you got into the current directory. In simplenode.runner, this may cause PIPE_DIR to have different values on each use, which will make it impossible to connect to the running node unless you guess the correct path yourself.
* Add support for using -remsh via runner scriptjoewilliams2012-04-232-7/+81
|
* add more info to readmejoewilliams2012-03-311-0/+1
|
* Handle vm.args properly while building upgradesjoewilliams2011-10-051-24/+23
| | | | | | | This patch corrects the vm.args behavior while building upgrade tarballs by copying the file from the release into the upgrade. Additionally it patches the dummy runner script in the upgrade test project to work properly.
* Get rid of app.configjoewilliams2011-09-203-4/+17
| | | | | | | | | | | | | | | | | | | | app.config has been a long standing erroneous file in rebar. Erlang/OTP documentation suggests a sys.config file instead. This file is stored in the releases/VSN directory. This does a few things but most importantly it ensures your config (contained in the application environment) survives a hot upgrade. It also has the advantage of allowing the configuration of the application to be versioned along side the application code. This patch flips rebar to use sys.config rather than app.config. Additionally it makes this flip to vm.args as well, making them versioned just like sys.config. This patch also includes runner script changes to support the old etc/app.config config file location and support for Windows. Thanks to mokele for the initial work and kick in the pants to make this finially happen.
* Sync rel/files in dummy project with templatesTuncer Ayaz2011-07-184-11/+29
|
* Update runner script in test projectTuncer Ayaz2011-03-041-3/+3
|
* Add 'generate-appups' commandjoewilliams2011-02-152-8/+1
| | | | | | | | | | | | | | | 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'.
* Clean up emacs file local variablesTuncer Ayaz2011-01-311-1/+1
|
* Update nodetool in upgrade_projectTuncer Ayaz2011-01-311-0/+22
|
* Add 'generate-upgrade' commandjoewilliams2011-01-2713-0/+499
To support OTP release upgrades I have added support for building upgrade packages. Support for this is included in the rebar_upgrade module, specifically generate_upgrade/2. It requires one variable to be set on the command line 'previous_release' which is the absolute path or relative path from 'rel/' to the previous release one is upgrading from. Running an upgrade will create the needed files, including a relup and result in a tarball containing the upgrade being written to 'rel/'. When done it cleans up the temporary files systools created. Usage: $ rebar generate-upgrade previous_release=/path/to/old/version This also includes a dummy application that can be used to test upgrades as well as an example. Special thanks to Daniel Reverri, Jesper Louis Andersen and Richard Jones for comments and patches.