Ubuntu 10.04 + MySQL+ Nginx 安装与集成 Redmine 1.4(2)

  user  nginx;       worker_processes  1;             #error_log  logs/error.log;       #error_log  logs/error.log  notice;       #error_log  logs/error.log  info;             #pid        logs/nginx.pid;             events        {           worker_connections  1024;       }                   http        {           passenger_root /usr/lib/ruby/gems/1.8/gems/passenger-3.0.15;           passenger_ruby /usr/bin/ruby1.8;                 include       mime.types;           default_type  application/octet-stream;                 #log_format  main  '$remote_addr - $remote_user [$time_local] "$request" '           #                  '$status $body_bytes_sent "$http_referer" '           #                  '"$http_user_agent" "$http_x_forwarded_for"';                 #access_log  logs/access.log  main;                 sendfile        on;           #tcp_nopush     on;                 #keepalive_timeout  0;           keepalive_timeout  65;                 #gzip  on;                 server            {               listen       80;               server_name  localhost;               root /var/www;                     #charset koi8-r;                     #access_log  logs/host.access.log  main;                     location /                {                   root   html;                   index  index.html index.htm;               }                     location /redmine               {                   passenger_enabled on;                   passenger_base_uri /redmine;               }                           #error_page  404              /404.html;                     # redirect server error pages to the static page /50x.html               #               error_page   500 502 503 504  /50x.html;               location = /50x.html                {                   root   html;               }           }       }

#启动Nginx
@linux:/opt$ sudo nginx

#测试



十三、安装插件
1、Redmine Sprints
#下载插件
@linux:/opt/redmine_1.4$ sudo git clone git://github.com/software-project/scrum-pm.git vendor/plugins/redmine_sprints
@linux:/opt/redmine_1.4/vendor/plugins$ sudo git clone git://github.com/technoweenie/attachment_fu.git  vendor/plugins/attachment_fu

#修改权限
@linux:/opt/redmine_1.4$ cd vendor/plugins/
@linux:/opt/redmine_1.4/vendor/plugins$ sudo chown -Rf nginx:nginx ./redmine_sprints/
@linux:/opt/redmine_1.4/vendor/plugins$ chown -Rf nginx:nginx ./attachment_fu/

#关于此插件依赖包
建议体检修改Redmine Gemfile,在其中中添加以下几行:
gem "googlecharts", :require => "gchart"
gem "mini_magick"

2、code review
#下载redmine_code_review 并将其解压到 redmin/vendor/plugins
@linux:/opt/redmine_1.4$ cd vendor/plugins/
@linux:/opt/redmine_1.4$ cd vendor/plugins/ sudo chown -Rf nginx:nginx ./redmine_code_review/
sudo rake db:migrate_plugins RAILS_ENV=production

内容版权声明:除非注明,否则皆为本站原创文章。

转载注明出处:http://www.heiqu.com/cba5a4f9c783f0d29484d4f4e943e754.html