Redmine Installation
In order to install new Redmine, you need to have a compiled Ruby and install Redmine installer Ruby Gem. To install this gem use:
Request Redmine installation wizard download
$ gem install redmine-installer
For correct running of the Redmine installer, at least 250 MB is required free on the root disc.
When the installer gem is installed in your Ruby, you can run the installation using the following command:
$ redmine install [PACKAGE] [REDMINE_ROOT]
Notes:
[PACKAGE] - Redmine installation package (zip or gz)
[REDMINE_ROOT] - where to install the application
To get help:
$ redmine help
$ redmine help install
Commands for Redmine Installation - from Archive
Supported archives are .zip .tar.gz
$ redmine install [PATH_TO_PACKAGE] [REDMINE_ROOT]
# with environment
$ redmine install [PATH_TO_PACKAGE] [REDMINE_ROOT] --env environment
Example:
$ wget http://www.redmine.org/releases/redmine-3.4.2.zip
$ redmine install redmine-3.4.2.zip
Commands for Redmine Installation - from GIT
$ redmine install GIT_REPO --source git
# with specific branch
$ redmine install GIT_REPO --source git --branch GIT_BRANCH --env environment
Example:
$ redmine install git@github.com:redmine/redmine.git --source git
Example with specific GIT branch:
$ redmine install git@github.com:redmine/redmine.git --source git --branch 3.4-stable
Upgrade of existing Redmine instance
Redmine Installer can upgrade your existing Redmine from archive or git repository. Installed plugins are kept or upgraded if new package contains them.
The upgrade procedure can be saved in a profile for the next upgrade. Profiles are stored in HOME_FOLDER/.redmine-installer-profiles.yml
After running the command for upgrade:
$ redmine upgrade [PACKAGE] [REDMINE_ROOT]
# with environment
$ redmine upgrade [PACKAGE] [REDMINE_ROOT] --env environment
To get help:
$ redmine help
$ redmine help upgrade
Commands for Redmine Upgrade - from git
$ redmine upgrade --source git
# with environment
$ redmine upgrade --source git --env environment
Command for Redmine Upgrade - from a profile
$ redmine upgrade [PACKAGE] [REDMINE_ROOT] --profile PROFILE_ID
Upgrading with custom modifications
If you are using easyproject plugin and you don't want to copy the client modifications from old instance, use switch
--skip-old-modifications
Redmine Backups
There is command to backup the Redmine
$ redmine backup [REDMINE_ROOT]