Manual installation of redmine is very troublesome, and it is very easy to install and deploy using instantrails Because redmine 1.0.0 requires a higher version than the InstantRails-2.0, using redmine1.0 in InstantRails-2.0 installation is relatively complex, not suitable for beginners. This article uses redmine version 0.8.4, which is very suitable for beginners. The installation procedure is as follows: 1. Download instantrails http://rubyforge.org/frs/download.php/29867/InstantRails-2.0-win.zip 2. Unzip the package without installation. 3. Add C:/InstantRails-2.0-win/Ruby/bin to the environment variable path; 6. Download redmine (version 0.8.4) address (http://rubyforge.org/frs? Group_id = 1850), decompress the package, put it in the C:/InstantRails-2.0-win/rails_apps directory 7. Run C:/InstantRails-2.0-win/instantrails.exe. Check if Apache is running properly. 8. Configure the database. Here I use the sqlite3 database, which is relatively simple to back up. Rename: the database. yml. Example file under the InstantRails-2.0-win/rails_apps/redmine-0.8.4/config/directory is database. yml The configuration is as follows: Production: Adapter: sqlite3 Database: DB/redmine. sqlite3 HOST: localhost Username: Password: Encoding: utf8 Development: Adapter: sqlite3 Database: DB/redmine. sqlite3 HOST: localhost Username: Password: Encoding: utf8 9. import data to the database: Click I-Rails Applications-open Ruby Console window on the instantrails interface to exit the DOS window. Run the following command on the command line: CD redmine-0.8.4 Rake DB: migrate rails_env = "production" Rake load_default_data rails_env = "production" Here, rake DB: migrate rails_env = "production" is used to create a database: rake load_default_data rails_env = "production" indicates that the running environment of the current project is production. You are prompted to select a language, select Zh. 10: Now the configuration is complete, click the instantrails interface I-RAILS applications-manage Rails Applications column, click "Start with Mongrel" to start redmine 0.8.4, jump out of a DOS window, you can start redmine 11. Enter http: // localhost: 3000/in the browser, enter the username, admin, and password admin to enter the redmine management interface. 12. a dos window is required for redmine startup. You can use redmine as a Windows service to enable the operating system to automatically start the redmine server. |