Linux redmine3.3 Migration, upgrade, plugin memo

Source: Internet
Author: User
Tags gpg readline redmine

Baidu Search: Xiao Qiang test brand


Service status

Address: http://ip:3000

The main use of redmine (rails) services, MySQL services, and some other services!


Basic Environment

Yum install-y gcc-c++ patch readline readline-devel zlib zlib-devel libyaml-devel libffi-devel openssl-devel make bzip2 A utoconf automake Libtool Bison iconv-devel

Yum-y install mysql-server MySQL mysql-devel


Installation RVM (reference: http://blog.csdn.net/mydo/article/details/47748211)

mkdir RVM
CD RVM
GPG--keyserver hkp://keys.gnupg.net--recv-keys 409b6b1796c275462a1703113804bb82d39dc0e3
Curl-o Https://raw.githubusercontent.com/rvm/rvm/master/binscripts/rvm-installer
Curl-o HTTPS://RAW.GITHUBUSERCONTENT.COM/RVM/RVM/MASTER/BINSCRIPTS/RVM-INSTALLER.ASC
GPG--verify RVM-INSTALLER.ASC &&
Bash Rvm-installer Stable
Rvm-v


Sed-i-E ' s/ftp\.ruby-lang\.org\/pub\/ruby/ruby\.taobao\.org\/mirrors\/ruby/g '/usr/local/rvm/config/db


RVM list Known #查看有哪些东东

RVM Install 2.3

RVM 2.3.3--default

Ruby-v


Gem-v

Set up the Gem source (ref.: https://ruby.taobao.org/)
Gem sources--add https://gems.ruby-china.org/--remove https://rubygems.org/
Gem Sources-l
Please make sure that only gems.ruby-china.org
Gem Install Rails
PS: If gems cannot be added, you can modify vi/etc/resolv.conf, keep only nameserver 114.114.114.114, and then try again


Rails-v

Enter Redmine conf, CP out a database.yml, and then modify the contents of production, refer to the following
Production
Adapter:mysql2
Database:redmine
Host:localhost
Username:root
Password


Create database Redmine character set UTF8;
Mysql-u root-p Redmine < Xxxx.sql


Enter the root directory of Redmine to execute the following command
Gem Install Bundler
Bundle install--without Development test Rmagick
Bundle EXEC Rake Generate_secret_token
Rake Db:migrate rails_env=production
If there is a plugin update: bundle exec rake db:migrate:upgrade_plugin_migrations rails_env=production rake db:migrate_plugins rails_env= Production
Rake Tmp:cache:clear
Rake Tmp:sessions:clear


command to start Redmine3:
Bundle EXEC Rails Server webrick-e production-b 0.0.0.0-d


Linux Firewall shielded Port 3000
Workaround: Configure the firewall, open the Port 3000
#/sbin/iptables-i input-p TCP--dport 3000-j ACCEPT
#/etc/rc.d/init.d/iptables Save
# Service Iptables Restart


Redmine Run Slow:

Modify Configuration.yml

Locate Delivery_method:: SMTP, change SMTP to ASYNC_SMTP

Restart the service. This is a change to an asynchronous


Custom menu plug-in installation

Unzip the zip and upload it to Redmine's plugins directory with the plugin as follows

Custom_menu.zip

Execute the following commands in the Redmine root directory, respectively

git clone https://bitbucket.org/dkuk/a_common_libs.git

Bundle Install

Rake Redmine:plugins:migrate rails_env=production

Then restart Redmine

Finally in the management plug-in configuration can be


Chart Plugin

Redmine Plugin directory execution:git clone https://github.com/masweetman/issue_charts.git

Go back to root directory execution:

Bundle Install

Rake Redmine:plugins:migrate rails_env=production

Restart


Picture Preview Plugin

Redmine plugin directory execution: Git clone https://github.com/paginagmbh/redmine_lightbox2.git

Go back to root directory execution: Rake redmine:plugins:migrate rails_env=production


This article is from "Xiao Qiang performance test brand product Manager" blog, please be sure to keep this source http://xqtesting.blog.51cto.com/4626073/1919253

Linux redmine3.3 Migration, upgrade, plugin memo

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.