deploy redmine on openshift with ssh
frist sign in on openshift.redhat.com or sign up new one its free with 1GB storeage.
install openshift CLI gem install rhc
or with all dependencies gem install rhc --development
if existing member openshift know for start, using rhc setup
check another deploy app first
Creating new app #
rhc app create redmine ruby-1.9 mysql-5 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 #
3-stable version #
wget http://www.redmine.org/releases/redmine-3.0.1.tar.gz && tar --strip-components=1 -zxvf *.tar.gz && rm *.tar.gz
2-stable version #
wget http://www.redmine.org/releases/redmine-2.6.3.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
File system permissions #
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.
for more visit redmine wiki #
Adding alias redmine.myproject.org
for example #
rhc alias add redmine redmine.myproject.org
see repo.tigefa.org