redmine + nginx + thin
yum install git vim gem ruby-devel mysql-devel ImageMagick
gem install bundler
Step 1 下载redmine
git clone https://github.com/redmine/redmine.git
cd redmine
git checkout 3.3-stable
Step 2 Mysql
1234 | CREATE DATABASE redmine CHARACTER SET utf8;CREATE USER 'redmine'@'%' IDENTIFIED BY 'xxxxxxxxxxxxxxx';GRANT ALL PRIVILEGES ON redmine.* TO 'redmine'@'%'; |
Step 3 配置
cp config/database.yml.example config/database.yml
vim config/database.yml
123456 | production: adapter: mysql2 database: redmine host: dxty.tech username: redmine password: xxxxxxxxxxxxxxx |
cp config/configuration.yml.example config/configuration.yml
vim config/configuration.yml
12345678910 | ```yml email_delivery: delivery_method: :smtp smtp_settings: address: "smtp.mxhichina.com" port: 25 authentication 大专栏 redmine安装: :plain domain: 'imlh.cn' user_name: 'dev@imlh.cn' password: 'sssssssssss' |
Step 4 依赖
vim Gemfile 改为国内ruby源
bundle install –without development test
bundle install –without development test rmagick
Step 5 生成token
bundle exec bin/rake generate_secret_token
Step 6 数据库见表
RAILS_ENV=production bundle exec bin/rake db:migrate
Step 7 默认数据
RAILS_ENV=production bundle exec bin/rake redmine:load_default_dat
Step 8 文件权限
mkdir -p tmp tmp/pdf public/plugin_assets
sudo chown -R redmine:redmine files log tmp public/plugin_assets
sudo chmod -R 755 files log tmp public/plugin_assets
Step 9 测试安装
bundle exec bin/rails server -b 0.0.0.0 webrick -e production
Step 10 登录
login: admin
password: admin
插件相关
装插件
git clone http://www.redmine.org/plugins/clipboard_image_paste plugin/clipboard_image_paste
git clone https://github.com/a-ono/redmine_ckeditor.git
rake redmine:plugins:migrate RAILS_ENV=production
删插件
bundle exec rake redmine:plugins:migrate NAME=plugin_name VERSION=0 RAILS_ENV=production
####
https://github.com/centosadmin/redmine_activity_report.git
bundle exec whenever -c redmine_activity_report -f plugins/redmine_activity_report/config/schedule.rb
生产环境
可用 passenter或webric或thin搭配nginx
这是 官方的thin教程
常用插件 贴一下
- clipboard_image_paste
- easy_gantt
- issue_charts
- redmine_activity_report
- redmine_agile
- redmine_checklists
- redmine_mentions
- redmine_messenger
- redmine_work_time
- scrum
- time_logger
- timesheet