Download sources - http://www.redmine.org/
# Install commands, Ubuntu - specific, not from official instruction:
sudo apt-get install ruby ruby-dev
sudo apt-get install postgresql libpq-dev
sudo apt-get install imagemagic libmagickwand-dev ruby-rmagick
# Install commands, universal:
sudo gem install bundler
cd redmine-2.3
sudo bundle install --without development test mysql
sudo gem install pg
cp config/database.yml.example config/database.yml
Edit config/database.yml:
production:
adapter: postgresql
database: redmine
host: localhost
username: postgres
password: "postgres"
rake generate_secret_token
createdb -E UTF8 redmine
# Restore Redmine from backup:
pg_restore -d redmine -Fc -O redmine.backup
rake db:migrate RAILS_ENV=production
rake tmp:cache:clear
rake tmp:sessions:clear
# Startup script redmine.sh:
#!/bin/bash
cd /opt/redmine-2.3
export RAILS_ENV=production
nohup ruby script/rails server webrick -e production &
No comments:
Post a Comment