1. Download install rails, redmine, rubygem 1.3.7.gem,
Http://rubyforge.org/frs/download.php/29867/InstantRails-2.0-win.zip
Http://rubyforge.org/frs/download.php/75099/redmine-1.2.1.zip
Http://rubyforge.org/frs/download.php/70695/rubygems-update-1.3.7.gem
2. Decompress install rails and decompress redmine to install rails/rails apps.
3. Remove database. yml. Example from instantrails/rails_apps/redmine/config.
4.run installrails.exe, and then open the MySQL management interface to create the database http: // 127.0.0.1/MySQL/. Run
-- Corresponding to Production
Create Database redmine Character Set utf8;
-- Corresponding to development
Create Database redmine_development Character Set utf8;
-- Corresponds to test
Create Database redmine_test Character Set utf8;
5. Open the command line and enter the redmine directory, such as c: \ installrails \ webapps \ redmine_1.2.1. initialize the data structure and basic data, and set the default database.
Rake db: migrate RAILS_ENV = "production" create the data structure of the production (that is, the redmine database)
Many problems may occur here...
1> install 1.3.7.gem, go to the path where 1.3.7.gem is located, and then execute
Gem install -- local rubygems-update-1.3.7.gem
Update_rubygems
Gem install rack-v = 1.1.0
Gem install-v = 2.3.5 rails
Gem install-v = 0.4.2 i18n
Gem uninstall rack
Gem install rack-v = 1.1.0
Enter redmine \ config \ environment. rb and add the configuration before the last end.
Config. action_controller.session = {: key => "_ myapp_session",: secret => "4035ba51531c6c96a27e3dd41e3d4471 "}
Run rake db: migrate RAILS_ENV = "production". Then, you can see that table Creation starts.
2> rake redmine: load_default_data RAILS_ENV = "production": Set the default data source to the database corresponding to production, and select the language.
6. Enter the redmine path, execute ruby script/server-e production, start the service, and then you can log on, the address is the http://xxx.xxx.xxx.xxx/3000