Redmine

github連携

$ sudo -u redmine git clone --mirror git@github.com/hoge.git

検索エンジンにヒットさせない

$ vi /var/lib/redmine/public/robots.txt
 
User-agent: *
Disallow: /
$ vi /var/lib/redmine/app/views/layouts/base.rhtml
 
<meta name="googlebot" content="noindex,nofollow,noarchive" /> #headのどっかに追記

Basic認証

githubと連携するときは外から見れないとダメなのでBasic認証は不可。github連携しない時のみ。

$ vi /var/lib/redmine/app/controller/application_controller.rb
 
 
   protect_from_forgery                                                                                
   before_filter :auth                                                                                 
    private                                                                                            
   def auth                                                                                            
     authenticate_or_request_with_http_basic do |user, pass|                                           
       user == 'user' && pass == 'password'                                                                
     end                                                                                               
   end 

テーマの変更

Theme_List

http://pixel-cookers.github.io/redmine-theme/

$ cd /var/lib/redmine/public/theme/
$ git clone git://github.com/pixel-cookers/redmine-theme.git pixel-cookers

Plugin assetsディレクトリに書き込み可能

を丸にする。

$ mkdir /var/lib/redmine/public/plugin_assets
development_tool/redmine.txt · 最終更新: 2013/08/14 15:00 by eiji