{"id":9069,"date":"2018-05-16T10:02:29","date_gmt":"2018-05-16T01:02:29","guid":{"rendered":"http:\/\/www.moonmile.net\/blog\/?p=9069"},"modified":"2018-05-16T16:30:39","modified_gmt":"2018-05-16T07:30:39","slug":"%e3%83%a9%e3%82%ba%e3%83%91%e3%82%a4%e3%81%ae-readmine-3-4-%e3%82%92%e3%82%a4%e3%83%b3%e3%82%b9%e3%83%88%e3%83%bc%e3%83%ab%e3%81%99%e3%82%8b%e6%89%8b%e9%a0%86","status":"publish","type":"post","link":"http:\/\/www.moonmile.net\/blog\/archives\/9069","title":{"rendered":"\u30e9\u30ba\u30d1\u30a4\u306e Readmine 3.4 \u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3059\u308b\u624b\u9806"},"content":{"rendered":"<p>\u57fa\u672c\u306f\u3001\u4ee5\u4e0b\u306e redmine.jp \u306e\u624b\u9806\u306b\u5f93\u3048\u3070\u3044\u3044\u306e\u3060\u304c\u3001\u81ea\u5206\u306e\u30e1\u30e2\u7528\u306b\u3002<\/p>\n<p>Redmine 3.4\u3092Ubuntu Server 16.04.2 LTS\u306b\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3059\u308b\u624b\u9806 | Redmine.JP Blog<br \/>\n<a href=\"http:\/\/blog.redmine.jp\/articles\/3_4\/install\/ubuntu\/\">http:\/\/blog.redmine.jp\/articles\/3_4\/install\/ubuntu\/<\/a><br \/>\nRaspberry Pi 3 \u306b Redmine 3.3 \u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb | \u30b9\u30e2\u30fc\u30eb\u30b5\u30fc\u30d0\u958b\u767a\u90e8 <a href=\"https:\/\/blog.smallserver.jp\/raspberry-pi-3-%E3%81%AB-redmine-3-3-%E3%82%92%E3%82%A4%E3%83%B3%E3%82%B9%E3%83%88%E3%83%BC%E3%83%AB\/\">https:\/\/blog.smallserver.jp\/raspberry-pi-3-%E3%81%AB-redmine-3-3-%E3%82%92%E3%82%A4%E3%83%B3%E3%82%B9%E3%83%88%E3%83%BC%E3%83%AB\/<\/a><\/p>\n<p>&#8211; Raspberry Pi3 Rasbian Jessie<br \/>\n&#8211; Redmine 3.4<br \/>\n&#8211; MySQL 5.5<br \/>\n&#8211; Apache 2.4.10<\/p>\n<p>[code lang=&#8221;csharp&#8221;]<br \/>\npi@raspi3:\/usr\/local $ uname -a<br \/>\nLinux raspi3 4.9.35-v7+ #1014 SMP Fri Jun 30 14:47:43 BST 2017 armv7l GNU\/Linux<br \/>\npi@raspi3:\/usr\/local $ mysql &#8211;version<br \/>\nmysql  Ver 14.14 Distrib 5.5.60, for debian-linux-gnu (armv8l) using readline 6.3<br \/>\npi@raspi3:\/usr\/local $ sudo apachectl -v<br \/>\nServer version: Apache\/2.4.10 (Raspbian)<br \/>\nServer built:   Apr  3 2018 16:25:06<br \/>\npi@raspi3:\/usr\/local $<br \/>\n[\/code]<\/p>\n<h2>\u30d1\u30c3\u30b1\u30fc\u30b8\u306e\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb<\/h2>\n<p>[code lang=&#8221;csharp&#8221;]<br \/>\nsudo locale-gen ja_JP.UTF-8<br \/>\nsudo apt-get update<br \/>\nsudo apt-get install -y build-essential zlib1g-dev libssl-dev libreadline-dev libyaml-dev libcurl4-openssl-dev libffi-dev<br \/>\nsudo apt-get install mysql-server libmysqld-dev<br \/>\n[\/code]<\/p>\n<h2>MySQL\u306e\u6e96\u5099<\/h2>\n<p>\u5916\u90e8\u304b\u3089\u76f4\u63a5MySQL\u306b\u89e6\u308c\u308b\u3088\u3046\u306bIP\u4ed8\u304d\u3082\u6307\u5b9a\u3057\u3066\u304a\u304f<\/p>\n<p>[code lang=&#8221;csharp&#8221;]<br \/>\nmysql -u root -p<\/p>\n<p>CREATE DATABASE redmine charset=&quot;utf8&quot;;<br \/>\nGRANT ALL PRIVILEGES ON redmine.* TO redmine@localhost IDENTIFIED BY &#8216;redmine&#8217;;<br \/>\nGRANT ALL PRIVILEGES ON redmine.* TO redmine@&quot;172.16.0.%&quot; IDENTIFIED BY  &#8216;redmine&#8217; WITH GRANT  OPTION;<br \/>\n[\/code]<\/p>\n<p>my.cnf \u3067 bind-address \u3092\u30b3\u30e1\u30f3\u30c8\u30a2\u30a6\u30c8<\/p>\n<p>[code lang=&#8221;csharp&#8221;]<br \/>\nvi \/etc\/mysql\/my.cnf<br \/>\n\u2193\u30b3\u30e1\u30f3\u30c8\u30a2\u30a6\u30c8<br \/>\n# bind-address = 127.0.0.1<br \/>\n[\/code]<\/p>\n<h2>openssl\u3092\u30d3\u30eb\u30c9<\/h2>\n<p>Ruby\u304copenssl\u3092\u5fc5\u8981\u3068\u3059\u308b\u306e\u3067\u30d3\u30eb\u30c9\u3002\u30e9\u30ba\u30d1\u30a4\u306e\u5834\u5408\u306f\u30d1\u30c3\u30b1\u30fc\u30b8\u304c\u306a\u3044\u306e\u3067\u3001\u30bd\u30fc\u30b9\u304b\u3089\u30d3\u30eb\u30c9\u3059\u308b\u3002<\/p>\n<p>[code lang=&#8221;csharp&#8221;]<br \/>\nwget https:\/\/www.openssl.org\/source\/openssl-1.0.2.tar.gz<br \/>\ntar xvf openssl-1.0.2.tar.gz<br \/>\ncd openssl-1.0.2<br \/>\n.\/config zlib shared no-ssl2<br \/>\nmake &amp;&amp; sudo make install<br \/>\n[\/code]<\/p>\n<h2>ruby\u3092\u30d3\u30eb\u30c9<\/h2>\n<p>ruby 2.4 \u3092\u4f7f\u3046\u305f\u3081\u306b\u30bd\u30fc\u30b9\u304b\u3089\u30d3\u30eb\u30c9\u3059\u308b<\/p>\n<p>[code lang=&#8221;csharp&#8221;]<br \/>\ncurl -O https:\/\/cache.ruby-lang.org\/pub\/ruby\/2.4\/ruby-2.4.1.tar.gz<br \/>\ntar xvf ruby-2.4.1.tar.gz<br \/>\ncd ruby-2.4.1<br \/>\n.\/configure &#8211;disable-install-doc &#8211;with-opt-dir=\/usr\/local\/ssl &#8211;enable-shared<br \/>\nmake &amp;&amp; sudo make install<br \/>\ncd ..<br \/>\n[\/code]<\/p>\n<p>openssl\u3092\u5165\u308c\u306a\u3044\u3068\u3001\u2193\u3067\u30a8\u30e9\u30fc\u306b\u306a\u308b\u3002<\/p>\n<p>[code lang=&#8221;csharp&#8221;]<br \/>\nsudo gem install bundler &#8211;no-rdoc &#8211;no-ri<br \/>\n[\/code]<\/p>\n<h2>Redmine\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb<\/h2>\n<p>Redmine \u3092 svn \u3067\u3068\u3063\u3066\u304d\u3066\u914d\u7f6e\u3002\u6700\u7d42\u7684\u306b\u306f\u3001http:\/\/raspi3.local\/redmine \u3067\u30a2\u30af\u30bb\u30b9\u3067\u304d\u308b\u3088\u3046\u306b\u3059\u308b\u304c\u3001\/var\/lib\/redmine \u306b\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3057\u3066 alias \u3059\u308b\u3002<\/p>\n<p>[code lang=&#8221;csharp&#8221;]<br \/>\nsudo mkdir \/var\/lib\/redmine<br \/>\nsudo chown www-data \/var\/lib\/redmine<br \/>\nsudo -u www-data svn co http:\/\/svn.redmine.org\/redmine\/branches\/3.4-stable \/var\/lib\/redmine<br \/>\n[\/code]<\/p>\n<p>database.yml \u3092\u4f5c\u6210\u3059\u308b\u3002\u30c7\u30fc\u30bf\u30d9\u30fc\u30b9\u306f mysql2 \u3092\u4f7f\u3046\u3002<\/p>\n<p>[code lang=&#8221;csharp&#8221;]<br \/>\nsudo vi \/var\/lib\/redmine\/config\/database.yml<\/p>\n<p>production:<br \/>\n  adapter: mysql2<br \/>\n  database: redmine<br \/>\n  host: localhost<br \/>\n  username: redmine<br \/>\n  password: &quot;redmine&quot;<br \/>\n  port: 3306<br \/>\n[\/code]<\/p>\n<p>gem \u30d1\u30c3\u30b1\u30fc\u30b8\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3057\u305f\u5f8c\u3001\u521d\u671f\u30c7\u30fc\u30bf\u3092\u5165\u308c\u308b\u3002\u521d\u671f\u30c7\u30fc\u30bf\u3092\u623b\u3057\u305f\u3044\u5834\u5408\u306f\u3001drop database redmine ; \u3057\u3066\u304b\u3089\u3001RAILS_ENV \u306e 2\u884c\u3092\u5b9f\u884c\u3059\u308b\u3002<\/p>\n<p>[code lang=&#8221;csharp&#8221;]<br \/>\ncd \/var\/lib\/redmine<br \/>\nsudo -u www-data bundle install &#8211;without development test &#8211;path vendor\/bundle<\/p>\n<p>sudo -u www-data bundle exec rake generate_secret_token<br \/>\nsudo -u www-data RAILS_ENV=production bundle exec rake db:migrate<br \/>\nsudo -u www-data RAILS_ENV=production REDMINE_LANG=ja bundle exec rake redmine:load_default_data<br \/>\n[\/code]<\/p>\n<h2>Apache\u306e\u8a2d\u5b9a<\/h2>\n<p>Passenger \u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3059\u308b\u3002Apache\u4e0a\u306eRails\u306e\u5b9f\u884c\u3067\u4f7f\u308f\u308c\u308b\u3002<\/p>\n<p>[code lang=&#8221;csharp&#8221;]<br \/>\nsudo gem install passenger -v 5.1.12 &#8211;no-rdoc &#8211;no-ri<br \/>\nsudo passenger-install-apache2-module &#8211;auto &#8211;languages ruby<br \/>\npassenger-install-apache2-module &#8211;snippet<br \/>\n[\/code]<\/p>\n<p>redmine.conf \u3092\u4f5c\u6210\u3059\u308b\u3002<br \/>\n\u6700\u5f8c\u306e Alias \/redmine \u3067\u3001\u30d6\u30e9\u30a6\u30b6\u304b\u3089\u30a2\u30af\u30bb\u30b9\u3059\u308b\u5834\u6240\u3092\u6c7a\u3081\u308b\u3002\u30eb\u30fc\u30c8\u306b\u3057\u305f\u3044\u5834\u5408\u306f\u3001\/etc\/apache2\/sites-enabled\/000-default.conf \u306e DocumentRoot \u3092\u66f8\u304d\u66ff\u3048\u308b\u3002<\/p>\n<p>[code lang=&#8221;csharp&#8221;]<br \/>\nsudo vi \/etc\/apache2\/conf-available\/redmine.conf<\/p>\n<p># Redmine\u306e\u753b\u50cf\u30d5\u30a1\u30a4\u30eb\u30fbCSS\u30d5\u30a1\u30a4\u30eb\u7b49\u3078\u306e\u30a2\u30af\u30bb\u30b9\u3092\u8a31\u53ef\u3059\u308b\u8a2d\u5b9a\u3002<br \/>\n# Apache 2.4\u306e\u30c7\u30d5\u30a9\u30eb\u30c8\u3067\u306f\u30b5\u30fc\u30d0\u4e0a\u306e\u5168\u30d5\u30a1\u30a4\u30eb\u3078\u306e\u30a2\u30af\u30bb\u30b9\u304c\u7981\u6b62\u3055\u308c\u3066\u3044\u308b\u3002<br \/>\n&lt;Directory &quot;\/var\/lib\/redmine\/public&quot;&gt;<br \/>\n  Require all granted<br \/>\n&lt;\/Directory&gt;<\/p>\n<p># Passenger\u306e\u57fa\u672c\u8a2d\u5b9a\u3002<br \/>\n# passenger-install-apache2-module &#8211;snippet \u3067\u8868\u793a\u3055\u308c\u305f\u8a2d\u5b9a\u3092\u8a18\u8ff0\u3002<br \/>\n# \u74b0\u5883\u306b\u3088\u3063\u3066\u8a2d\u5b9a\u5024\u304c\u7570\u306a\u308b\u305f\u3081\u4ee5\u4e0b\u306e5\u884c\u306f\u305d\u306e\u307e\u307e\u8ee2\u8a18\u305b\u305a\u3001\u5fc5\u305a<br \/>\n# passenger-install-apache2-module &#8211;snippet \u3067\u8868\u793a\u3055\u308c\u305f\u3082\u306e\u3092\u4f7f\u7528\u3059\u308b\u3053\u3068\u3002<br \/>\n#<\/p>\n<p>LoadModule passenger_module \/usr\/local\/lib\/ruby\/gems\/2.4.0\/gems\/passenger-5.1.12\/buildout\/apache2\/mod_passenger.so<br \/>\n&lt;IfModule mod_passenger.c&gt;<br \/>\n  PassengerRoot \/usr\/local\/lib\/ruby\/gems\/2.4.0\/gems\/passenger-5.1.12<br \/>\n  PassengerDefaultRuby \/usr\/local\/bin\/ruby<br \/>\n&lt;\/IfModule&gt;<\/p>\n<p># \u5fc5\u8981\u306b\u5fdc\u3058\u3066Passenger\u306e\u30c1\u30e5\u30fc\u30cb\u30f3\u30b0\u306e\u305f\u3081\u306e\u8a2d\u5b9a\u3092\u8ffd\u52a0\uff08\u4efb\u610f\uff09\u3002<br \/>\n# \u8a73\u3057\u304f\u306fPhusion Passenger users guide(https:\/\/www.phusionpassenger.com\/library\/config\/apache\/reference\/)\u53c2\u7167\u3002<br \/>\nPassengerMaxPoolSize 20<br \/>\nPassengerMaxInstancesPerApp 4<br \/>\nPassengerPoolIdleTime 864000<br \/>\nPassengerStatThrottleRate 10<\/p>\n<p>Alias \/redmine \/var\/lib\/redmine\/public<br \/>\n&lt;Location \/redmine&gt;<br \/>\n  PassengerBaseURI \/redmine<br \/>\n  PassengerAppRoot \/var\/lib\/redmine<br \/>\n&lt;\/Location&gt;<\/p>\n<p>[\/code]<\/p>\n<p>\u8a2d\u5b9a\u306e\u53cd\u6620\u3068\u3001apache\u306e\u518d\u8d77\u52d5<\/p>\n<p>[code lang=&#8221;csharp&#8221;]<br \/>\nsudo a2enconf redmine<br \/>\napache2ctl configtest<br \/>\nsudo service apache2 reload<br \/>\n[\/code]<\/p>\n<p>\u3053\u308c\u3067\u3001http:\/\/raspi3.local\/redmine \u3067\u30a2\u30af\u30bb\u30b9\u53ef\u80fd\u306b\u306a\u308b\u3002<br \/>\n\u6700\u521d\u306f\u3001admin\/admin \u3067\u5165\u308c\u308b\u3002<\/p>\n<p><a href=\"http:\/\/www.moonmile.net\/blog\/wp-content\/uploads\/2018\/05\/dworkblogimage20180515_01org.jpg\"><img decoding=\"async\" src=\"http:\/\/www.moonmile.net\/blog\/wp-content\/uploads\/2018\/05\/dworkblogimage20180515_01thum.jpg\" border=\"0\" \/><\/a><\/p>\n<p>\u3061\u306a\u307f\u306b\u3001\u30e9\u30ba\u30d1\u30a43\u3067\u3082\u7d50\u69cb\u9045\u3044\u306e\u3067\u5b9f\u904b\u7528\u3059\u308b\u5834\u5408\u306f\u5225\u9014PC\u306b\u7acb\u3066\u308b\u306e\u304c\u30d9\u30bf\u30fc\u3060\u3068\u601d\u3046\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u57fa\u672c\u306f\u3001\u4ee5\u4e0b\u306e redmine.jp \u306e\u624b\u9806\u306b\u5f93\u3048\u3070\u3044\u3044\u306e\u3060\u304c\u3001\u81ea\u5206\u306e\u30e1\u30e2\u7528\u306b\u3002 Redmine 3.4\u3092Ubuntu Server 16.04.2 LTS\u306b\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3059\u308b\u624b\u9806 | Redmine.JP Blog ht &hellip; <a href=\"http:\/\/www.moonmile.net\/blog\/archives\/9069\">\u7d9a\u304d\u3092\u8aad\u3080 <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_jetpack_newsletter_access":"","_jetpack_dont_email_post_to_subs":false,"_jetpack_newsletter_tier_id":0,"_jetpack_memberships_contains_paywalled_content":false,"_jetpack_feature_clip_id":0,"_jetpack_memberships_contains_paid_content":false,"footnotes":"","jetpack_post_was_ever_published":false},"categories":[3,67],"tags":[],"class_list":["post-9069","post","type-post","status-publish","format-standard","hentry","category-dev","category-raspberrypi"],"jetpack_sharing_enabled":true,"jetpack_featured_media_url":"","_links":{"self":[{"href":"http:\/\/www.moonmile.net\/blog\/wp-json\/wp\/v2\/posts\/9069","targetHints":{"allow":["GET"]}}],"collection":[{"href":"http:\/\/www.moonmile.net\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/www.moonmile.net\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/www.moonmile.net\/blog\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"http:\/\/www.moonmile.net\/blog\/wp-json\/wp\/v2\/comments?post=9069"}],"version-history":[{"count":5,"href":"http:\/\/www.moonmile.net\/blog\/wp-json\/wp\/v2\/posts\/9069\/revisions"}],"predecessor-version":[{"id":9099,"href":"http:\/\/www.moonmile.net\/blog\/wp-json\/wp\/v2\/posts\/9069\/revisions\/9099"}],"wp:attachment":[{"href":"http:\/\/www.moonmile.net\/blog\/wp-json\/wp\/v2\/media?parent=9069"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/www.moonmile.net\/blog\/wp-json\/wp\/v2\/categories?post=9069"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/www.moonmile.net\/blog\/wp-json\/wp\/v2\/tags?post=9069"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}