Redmine-based Windows deployment

Source: Internet
Author: User
Tags imagemagick redmine
Deploy the redmine Project Management System Based on Windows

Last time I wrote an article titled deploying redmine Project Management System Based on centos
But it is not easy to maintain. Because my own lab machine is not in Linux, it can only be used on a virtual machine. In this way, I think it is easy to cause data loss. After all, I often need to restore snapshots of virtual machines. So I migrated it to the Windows platform for running. The procedure is as follows:

Redmine configuration method

1. Download instantrails and decompress it to any non-Chinese directory:
You can think of instantrails as an integrated package for configuring the PHP environment on the local machine.
For example, like Wamp and XAMPP, instantrails is also equivalent to an integrated package in the ruby world. It already contains MySQL, phpMyAdmin, Apache, and other components for installation.
Official Address: http://rubyforge.org/frs? Group_id = 904

2. Download The redmine software package:

Due to the rake version of instantrails, redmine can only use version 0.8.x or earlier.

Official Address: http://rubyforge.org/frs? Group_id = 1850

3. Decompress redmine to "rails_apps" in the "instantrails" directory;

4. Rename "database. yml. Example" under "instantrails/rails_apps/redmine/config" to "database. yml"

5. Go to phpMyAdmin and create a database (using SQL commands ):

create database redmine character set utf8;
There are two ways to enter phpMyAdmin:

  1. Enter http: // 127.0.0.1/MySQL/in the browser/
  2. Instantrailsinterface (I → configure → database (
    PhpMyAdmin )"

6. redmine initialization data
Click
Instantrailsinterface (instantrails → rails)
Applications → open Ruby Console window, And the DOS window will pop out.

cd redmine
rake config/initializers/session_store.rb RAILS_ENV=production
rake db:migrate RAILS_ENV="production"
rake load_default_data RAILS_ENV="production"

7. Start the service
"Start with mongrel" (start the redmine application ). Do not close a DOS window. Now you can view the configured
Redmine.

Supplement to the redmine Appendix

1. Run the "C ++ library runtime error r6034"


Solution:
Http://www.microsoft.com/downloads/details.aspx? Familyid = 9b2da534-3e03-4391-8a4d-074b9f2bc1bf & displaylang = ZH-CN

2. When the program is started for the first time, the error "mysql_stmt_row_tell" is displayed.


Solution:
Copy "instant rails/MySQL/bin/libmysql. dll" to "instant
Rails/Ruby/bin/libmysql. dll"

3. rmagick deployment based on Windows:
A. To http://rubyforge.org/frs? Group_id = 12 & release_id = 8170.
, Download
RMagick-1.14.1_IM-6.3.0-7-Q8.zip
B. decompress the package and execute gem install in the directory.
Rmagick-1.14.1-win32.gem
C.at last, double-click imagemagick-6.3.0-7-q8-windows-dll.exe to install ImageMagick.
D. Add the installation directory of ImageMagick to the path of the environment variable.
E. The last step is to move the type-windows.xml in the attachment
Copy it to the config directory under the ImageMagick installation directory, for example
D:/ImageMagick-6.3.0-Q8/config, modify type. XML, the original is:

<typemap>
<include file="type-ghostscript.xml" />
</typemap>

To:

<typemap>
<include file="type-windows.xml" />
<!-- <include file="type-ghostscript.xml" /> -->
</typemap>

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.