Skip to content

Instantly share code, notes, and snippets.

@tigefa4u
Last active June 5, 2017 14:20
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save tigefa4u/8609800 to your computer and use it in GitHub Desktop.
Save tigefa4u/8609800 to your computer and use it in GitHub Desktop.
deploy redmine on openshift

frist sign in on openshift.redhat.com or sign up new one its free with 1GB storeage.

if existing member openshift know for start, using rhc setup

gem install rhc --no-ri --no-rdoc

Creating new app

rhc app create redmine ruby-1.9 mysql-5.1 cron-1.4 phpmyadmin-4

Sign SSH

rhc ssh redmine

Change directory website root index

cd ~/app-root/runtime/repo

Get redmine stable releases from redmine/wiki/Download

2.4-stable version

wget http://www.redmine.org/releases/redmine-2.4.2.tar.gz && tar --strip-components=1 -zxvf *.tar.gz && rm *.tar.gz

2.3-stable version

wget http://www.redmine.org/releases/redmine-2.3.4.tar.gz && tar --strip-components=1 -zxvf *.tar.gz && rm *.tar.gz

Configure config/database.yml

wget --no-check-certificate https://gist.github.com/tigefa4u/8215989/raw/4055a0ad6d7357e637de96232c70dc72047b722e/database.yml && mv database.yml config/

Bundle the gem

gem install bundler --no-ri --no-rdoc
bundle install --no-deployment

Next installing redmine

Session store secret generation

rake generate_secret_token

Database schema objects creation

RAILS_ENV=production rake db:migrate

Database default data set more

RAILS_ENV=production rake redmine:load_default_data

Logging into the application

Use default administrator account to log in:

login: admin
password: admin

You can go to Administration menu and choose Settings to modify most of the application settings.

Adding alias redmine.myproject.org for example

rhc alias add redmine redmine.myproject.org

see repo.tigefa.org

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment