Redmine: Difference between revisions

From Alpine Linux
(removed draft tag)
m (added note about ruby version)
Line 1: Line 1:
NOTE: Ruby 1.8.7_p299 is required, which as of 11/18/2010 is still in edge. <br />
apk add lighttpd fcgi rubygems mysql mysql-dev php<br />
apk add lighttpd fcgi rubygems mysql mysql-dev php<br />
gem install rails -v=2.3.5<br />
gem install rails -v=2.3.5<br />

Revision as of 16:11, 18 November 2010

NOTE: Ruby 1.8.7_p299 is required, which as of 11/18/2010 is still in edge.

apk add lighttpd fcgi rubygems mysql mysql-dev php
gem install rails -v=2.3.5
gem install mysql
mysql commands:

create database redmine character set utf8;
grant all privileges on redmine.* to 'redmine'@'localhost' identified by 'Secur3P@ass';
flush privileges;

mkdir /usr/share/webapps/redmine
copy over redmine-1.0.3.tar.gz contents into folder
chown -R lighttpd:lighttpd /usr/share/webapps/redmine
edit config/database.yml (copied from database.yml.example) production section to match above mysql settings
cd /usr/share/webapps/redmine
rake generate_session_store
RAILS_ENV=production rake db:migrate
RAILS_ENV=production rake redmine:load_default_data (keep default language of en)

ruby script/server webrick -e production
browse to localhost:3000
user admin:admin

Edit lighttpd.conf and uncomment "include mod_fcgi.conf"
Follow http://www.redmine.org/boards/2/topics/4458 adding the virtual host config to /etc/lighttpd/redmine.conf, and add redmine.conf to the includes in /etc/lighttpd/lighttpd.conf
Restart lighttpd.