Installing redmine seems a bit "clunky" to me, but thats probably because I've never used ruby jems before. I've put down steps involved in getting it working, in an NON-PRODUCTION enviroment (I.e not secure, just quick and dirty to get it running fast). This worked with release 1.2.1, and it installs mysql, but redmine works off other databases too, so modify to your needs.
First up, install all the prerequisits.
pacman -S rubygemsgem install -v=0.4.2 i18ngem install rack -v=1.1.0pacman -S mysql/etc/rc.d/mysqld start/usr/bin/mysqladmin -u root password 'root'pacman -S makegem install mysqlDownload and unpack the release. All the configuration files are in ./config/, so you need to go there next. We just change a few things in the example configs, so move them into place.
mv database.yml.example database.ymlmv configuration.yml.example configuration.ymlEdit database.yml, and change the top to this.
production: adapter: mysql database: redmine host: localhost username: root password: root encoding: utf8
Next, you have to edit the environment.rb file. Within the Rails::Initializer.run do |config| section,
add this line:
config.action_controller.session = { :key => "_myapp_session", :secret => "$t =>"ee7f29f2bb6f5006ff0674b7838e5dd7" }Finally, populate the database.
RAILS_ENV=production rake db:migrateRAILS_ENV=production rake redmine:load_default_dataAnd now your ready to go. Start the server and browse to http://localhost:30003
The default login is admin/admin.
script/server -e production
0 comments:
Post a Comment