=====Redmine===== ====github連携==== * [[https://github.com/koppen/redmine_github_hook|redmine_github_hookプラグインのインストール]] * githubレポジトリのsetting->Service Hooks -> WebHook URLsにhttp://my-redmine-domain/github_hook * redmineを起動してるユーザーで --mirrorでリポジトリをクローンする。 * redmineのプロジェクトのリポジトリパスには--mirrorで落としたレポジトリを指定する * 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 #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 ====テーマの変更==== [[http://www.redmine.org/projects/redmine/wiki/Theme_List|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