{"id":180,"date":"2016-09-22T14:56:13","date_gmt":"2016-09-22T05:56:13","guid":{"rendered":"https:\/\/www.nabecyan.dyndns.org\/wordpress\/?p=180"},"modified":"2017-10-06T09:50:11","modified_gmt":"2017-10-06T00:50:11","slug":"redmine%e3%81%ae%e3%82%a2%e3%83%83%e3%83%97%e3%82%b0%e3%83%ac%e3%83%bc%e3%83%89","status":"publish","type":"post","link":"https:\/\/wordpress.nabecyan.dyndns.org\/?p=180","title":{"rendered":"redmine\u306e\u30a2\u30c3\u30d7\u30b0\u30ec\u30fc\u30c9"},"content":{"rendered":"<p><span style=\"font-size: 12pt;\">\u30b5\u30fc\u30d0\u306eredmine\u30922.* \u304b\u30893.0\u306b\u30a2\u30c3\u30d7\u30b0\u30ec\u30fc\u30c9\u3059\u308b<\/span><\/p>\n<p><span style=\"font-size: 12pt;\">\u524d\u63d0\uff1aUbuntu 16.04 LTS<\/span><\/p>\n<p><span style=\"font-size: 12pt;\">1. ruby, rails, bundler\u3092\u30a2\u30f3\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb<\/span><\/p>\n<p style=\"padding-left: 30px;\"><span style=\"font-size: 12pt;\"><code>$ apt-get remove ruby rails bundler<\/code><\/span><\/p>\n<p><span style=\"font-size: 12pt;\">2. rvm\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3059\u308b<\/span><\/p>\n<ul>\n<li value=\"1\"><span style=\"font-size: 12pt;\">\u4e8b\u524d\u4f5c\u696d\u3068\u3057\u3066\u3001curl\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3059\u308b<\/span><\/li>\n<\/ul>\n<p style=\"padding-left: 30px;\"><span style=\"font-size: 12pt;\"><code>$ sudo apt-get install curl<\/code><\/span><\/p>\n<ul>\n<li><span style=\"font-size: 12pt;\">\u516c\u958b\u9375\u306e\u53d6\u5f97<\/span><\/li>\n<\/ul>\n<p style=\"padding-left: 30px;\"><span style=\"font-size: 12pt;\"><code><span class=\"pln\">$ curl <span class=\"pun\">-<\/span>sSL https<span class=\"pun\">:<\/span><span class=\"com\">\/\/rvm.io\/mpapis.asc | gpg --import -<\/span><\/span><\/code><\/span><\/p>\n<ul>\n<li><span style=\"font-size: 12pt;\">\u7d9a\u3051\u3066rvm\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3059\u308b<\/span><\/li>\n<\/ul>\n<p style=\"padding-left: 30px;\"><span style=\"font-size: 12pt;\"><code><span class=\"pln\">$ curl <\/span><span class=\"pun\">-<\/span><span class=\"pln\">L https<\/span><span class=\"pun\">:<\/span><span class=\"com\">\/\/get.rvm.io | bash -s stable --ruby<\/span><\/code><\/span><\/p>\n<ul>\n<li><span style=\"font-size: 12pt;\">~\/.bashrc \u306b\u4e0b\u8a18\u3092\u74b0\u5883\u5909\u6570\u3092\u8ffd\u52a0\u3057\u3066\u3001\u8aad\u307f\u8fbc\u307e\u305b\u308b\u3002<\/span><\/li>\n<\/ul>\n<p style=\"padding-left: 30px;\"><span style=\"font-size: 12pt;\"><code><span class=\"pun\"><span class=\"pln\">$ vi\u00a0<\/span>~\/.<span class=\"pln\">bashrc<\/span><\/span><\/code><\/span><\/p>\n<p style=\"padding-left: 30px;\"><span style=\"font-size: 12pt;\"><code><span class=\"pun\">[[<\/span> <span class=\"pun\">-<\/span><span class=\"pln\">s <\/span><span class=\"str\">\"$HOME\/.rvm\/scripts\/rvm\"<\/span> <span class=\"pun\">]]<\/span> <span class=\"pun\">&amp;&amp;<\/span> <span class=\"pun\">.<\/span> <span class=\"str\">\"$HOME\/.rvm\/scripts\/rvm\"<\/span><\/code><\/span><\/p>\n<p style=\"padding-left: 30px;\"><span style=\"font-size: 12pt;\"><code><span class=\"pln\">$ source <\/span><span class=\"pun\">~\/.<\/span><span class=\"pln\">bashrc<\/span><\/code><\/span><\/p>\n<ul>\n<li><span style=\"font-size: 12pt;\">rvm\u306e\u30b3\u30de\u30f3\u30c9\u3092\u5b9f\u884c\u3057\u52d5\u4f5c\u3092\u78ba\u8a8d<\/span><\/li>\n<\/ul>\n<p style=\"padding-left: 30px;\"><span style=\"font-size: 12pt;\"><code><span class=\"pln\">$ rvm <\/span><span class=\"pun\">-<\/span><span class=\"pln\">v<\/span><\/code><\/span><\/p>\n<p style=\"padding-left: 30px;\"><span style=\"font-size: 12pt;\"><code>rvm 1.27.0 (latest) by Wayne E. Seguin &lt;wayneeseguin@gmail.com&gt;, Michal Papis &lt;mpapis@gmail.com&gt; [https:\/\/rvm.io\/]<\/code><\/span><\/p>\n<p><span style=\"font-size: 12pt;\">3. ruby\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3059\u308b<\/span><\/p>\n<ul>\n<li><span style=\"font-size: 12pt;\">\u4e0b\u8a18\u30b3\u30de\u30f3\u30c9\u3092\u5b9f\u884c\u3057rvm\u3067\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u53ef\u80fd\u306a\u30ea\u30b9\u30c8\u3092\u78ba\u8a8d\u3059\u308b<\/span><\/li>\n<\/ul>\n<p style=\"padding-left: 30px;\"><span style=\"font-size: 12pt;\"><code><span class=\"pln\">$ rvm list known<\/span><\/code><\/span><\/p>\n<ul>\n<li><span style=\"font-size: 12pt;\">ruby2.3.0\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3059\u308b\uff08&#8211;default\u306f\u3001\u8907\u6570\u30d0\u30fc\u30b8\u30e7\u30f3\u304c\u6df7\u5728\u3057\u3066\u3044\u308b\u969b\u306b\u30c7\u30d5\u30a9\u30eb\u30c8\u4f7f\u7528\u3059\u308b\u3082\u306e\u3092\u6307\u5b9a\u3059\u308b\u30aa\u30d7\u30b7\u30e7\u30f3\uff09<\/span><\/li>\n<\/ul>\n<p style=\"padding-left: 30px;\"><span style=\"font-size: 12pt;\"><code><span class=\"pln\">$ rvm install ruby<\/span><span class=\"pun\">-<\/span><span class=\"lit\">2.3.0<\/span>\u00a0<span class=\"pun\">--<\/span><span class=\"kwd\">default<\/span><\/code><\/span><\/p>\n<ul>\n<li><span style=\"font-size: 12pt;\">\u4e0b\u8a18\u30b3\u30de\u30f3\u30c9\u3067\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3067\u304d\u305f\u3053\u3068\u3092\u78ba\u8a8d\u3059\u308b<\/span><\/li>\n<\/ul>\n<p style=\"padding-left: 30px;\"><span style=\"font-size: 12pt;\"><code><span class=\"pln\">$ ruby <\/span><span class=\"pun\">-<\/span><span class=\"pln\">v<\/span><\/code><\/span><\/p>\n<p style=\"padding-left: 30px;\"><span style=\"font-size: 12pt;\"><code>ruby 2.3.0p0 (2015-12-25 revision 53290) [i686-linux]<\/code><\/span><\/p>\n<p><span style=\"font-size: 12pt;\">4. rails\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3059\u308b<\/span><\/p>\n<ul>\n<li><span style=\"font-size: 12pt;\">rails3\u304b\u3089javascript\u306e\u30e9\u30f3\u30bf\u30a4\u30e0\u304c\u5fc5\u8981\u3067\u3042\u308b\u305f\u3081\u3001node.js\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3057\u3066\u304a\u304f<\/span><\/li>\n<\/ul>\n<p style=\"padding-left: 30px;\"><span style=\"font-size: 12pt;\"><code><span class=\"pln\">$ sudo apt<\/span><span class=\"pun\">-<\/span><span class=\"kwd\">get<\/span><span class=\"pln\"> install nodejs<\/span><\/code><\/span><\/p>\n<ul>\n<li><span style=\"font-size: 12pt;\">rails\u306e\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u53ef\u80fd\u306a\u30d0\u30fc\u30b8\u30e7\u30f3\u3092\u78ba\u8a8d\u3059\u308b<\/span><\/li>\n<\/ul>\n<p style=\"padding-left: 30px;\"><span style=\"font-size: 12pt;\"><code>$ gem search -r rails<\/code><\/span><\/p>\n<p style=\"padding-left: 30px;\"><span style=\"font-size: 12pt;\"><code>...<\/code><\/span><\/p>\n<p style=\"padding-left: 30px;\"><span style=\"font-size: 12pt;\"><code>radiojs-rails (0.2.1)<\/code><\/span><\/p>\n<p style=\"padding-left: 30px;\"><span style=\"font-size: 12pt;\"><code>radius-rails (0.0.6)<\/code><\/span><\/p>\n<p style=\"padding-left: 30px;\"><span style=\"font-size: 12pt;\"><code><span style=\"color: #3366ff;\">rails (5.0.0.1)<\/span><\/code><\/span><\/p>\n<p style=\"padding-left: 30px;\"><span style=\"font-size: 12pt;\"><code>rails-3-settings (0.1.1)<\/code><\/span><\/p>\n<p style=\"padding-left: 30px;\"><span style=\"font-size: 12pt;\"><code>rails-action-args (0.1.1)<\/code><\/span><\/p>\n<p style=\"padding-left: 30px;\"><span style=\"font-size: 12pt;\"><code>...<\/code><\/span><\/p>\n<ul>\n<li><span style=\"font-size: 12pt;\">\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3057\u305fruby2.3.0\u3068\u3001\u3053\u308c\u304b\u3089\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3059\u308brails(5.0.0.1)\u3092\u300crails5_0_0_1\u300d\u3068\u3044\u3046\u540d\u524d\u306egemset\u3068\u3057\u3066\u5b9a\u7fa9\u3057\u3066\u304a\u304f<\/span><\/li>\n<\/ul>\n<p style=\"padding-left: 30px;\"><span style=\"font-size: 12pt;\"><code><span class=\"pln\">$ rvm gemset create rails5_0_0_1<\/span><\/code><\/span><\/p>\n<p style=\"padding-left: 30px;\"><span style=\"font-size: 12pt;\"><code><span class=\"pln\">$ rvm <\/span><span class=\"lit\">2.3.0<\/span><span class=\"lit\">@rails5_0_0_1<\/span><\/code><\/span><\/p>\n<ul>\n<li><span style=\"font-size: 12pt;\">rails\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3059\u308b<\/span><\/li>\n<\/ul>\n<p style=\"padding-left: 30px;\"><span style=\"font-size: 12pt;\"><code><span class=\"pln\">$ gem install rails<\/span><\/code><\/span><\/p>\n<ul>\n<li><span style=\"font-size: 12pt;\">\u30b3\u30de\u30f3\u30c9\u3092\u5b9f\u884c\u3057\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3067\u304d\u305f\u3053\u3068\u3092\u78ba\u8a8d<\/span><\/li>\n<\/ul>\n<p style=\"padding-left: 30px;\"><span style=\"font-size: 12pt;\"><code><span class=\"pln\">$ rails <\/span><span class=\"pun\">-<\/span><span class=\"pln\">v<\/span><\/code><\/span><\/p>\n<p style=\"padding-left: 30px;\"><span style=\"font-size: 12pt;\"><code>Rails 5.0.0.1<\/code><\/span><\/p>\n<p class=\"syntax-highlight\"><span style=\"font-size: 12pt;\">\u00a05.\u00a0redmine\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3059\u308b<\/span><\/p>\n<ul>\n<li><span style=\"font-size: 12pt;\">file-tail \u3068passenger\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3059\u308b\u3002<\/span><\/li>\n<\/ul>\n<p style=\"padding-left: 30px;\"><span style=\"font-size: 12pt;\"><code>$\u00a0gem install file-tail<\/code><\/span><\/p>\n<p style=\"padding-left: 30px;\"><span style=\"font-size: 12pt;\"><code>$ gem install passenger<\/code><\/span><\/p>\n<ul>\n<li><span style=\"font-size: 12pt;\">mod_passenger \u3092\u30d3\u30eb\u30c9\u3059\u308b<\/span><\/li>\n<\/ul>\n<p style=\"padding-left: 30px;\"><span style=\"font-size: 12pt;\">Web\u30b5\u30fc\u30d0\u306f Apache \u306a\u306e\u3067\uff0c\u3053\u308c\u5411\u3051\u306e\u30e2\u30b8\u30e5\u30fc\u30eb\u3092\u30d3\u30eb\u30c9\u3059\u308b\u3002<\/span><\/p>\n<p style=\"padding-left: 30px;\"><span style=\"font-size: 12pt;\"><code>$ <kbd>passenger-install-apache2-module --auto --languages ruby<\/kbd><\/code><\/span><\/p>\n<ul>\n<li><span style=\"font-size: 12pt;\">Apache \u306e\u8a2d\u5b9a\u3092\u4fee\u6b63\u3059\u308b<\/span><\/li>\n<\/ul>\n<p style=\"padding-left: 30px;\"><span style=\"font-size: 12pt;\">\u4e8b\u524d\u6e96\u5099<\/span><\/p>\n<p style=\"padding-left: 60px;\"><span style=\"font-size: 12pt;\">libapache2-mod-passenger\u00a0\u3092 apt-get \u3067\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3057\u3001a2enmod passenger\u00a0\u3067\u6709\u52b9\u5316\u3057\u3066\u304a\u304f<\/span><\/p>\n<p style=\"padding-left: 30px;\"><span style=\"font-size: 12pt;\"><code>$ vi \/etc\/apache2\/mods-aveilable\/passenger.load<\/code><\/span><\/p>\n<p style=\"padding-left: 60px;\"><span style=\"font-size: 12pt;\"><code>## modified by H.Tanabe 20160922<\/code><\/span><\/p>\n<p style=\"padding-left: 60px;\"><span style=\"font-size: 12pt;\"><code>LoadModule passenger_module \/usr\/local\/rvm\/gems\/ruby-2.3.0\/gems\/passenger-5.0.30\/buildout\/apache2\/mod_passenger.so<\/code><\/span><\/p>\n<p class=\"wp_syntax\" style=\"padding-left: 30px;\"><span style=\"font-size: 12pt;\"><code>$ vi \/etc\/apache2\/mods-aveilable\/passenger.conf<\/code><\/span><\/p>\n<p style=\"padding-left: 30px;\"><span style=\"font-size: 12pt;\"><code>## modified by H.Tanabe 20160922<\/code><\/span><\/p>\n<p style=\"padding-left: 30px;\"><span style=\"font-size: 12pt;\"><code>&lt;IfModule mod_passenger.c&gt;<\/code><\/span><\/p>\n<p style=\"padding-left: 30px;\"><span style=\"font-size: 12pt;\"><code>PassengerRoot \/usr\/local\/rvm\/gems\/ruby-2.3.0\/gems\/passenger-5.0.30<\/code><\/span><\/p>\n<p style=\"padding-left: 30px;\"><span style=\"font-size: 12pt;\"><code>PassengerDefaultRuby \/usr\/local\/rvm\/gems\/ruby-2.3.0\/wrappers\/ruby<\/code><\/span><\/p>\n<p style=\"padding-left: 30px;\"><span style=\"font-size: 12pt;\"><code>&lt;\/IfModule&gt;<\/code><\/span><\/p>\n<p style=\"padding-left: 30px;\"><span style=\"font-size: 12pt;\"><code>## H.Tanabe<\/code><\/span><\/p>\n<p style=\"padding-left: 30px;\"><span style=\"font-size: 12pt;\"><code>PassengerDefaultUser www-data<\/code><\/span><\/p>\n<p style=\"padding-left: 30px;\"><span style=\"font-size: 12pt;\"><code>RailsBaseURI \/redmine<\/code><\/span><\/p>\n<p style=\"padding-left: 30px;\"><span style=\"font-size: 12pt;\"><code>$ vi \/etc\/apache2\/sites-aveilable\/redmine.conf<\/code><\/span><\/p>\n<p style=\"padding-left: 30px;\"><span style=\"font-size: 12pt;\"><code>&lt;VirtualHost *:80&gt;<\/code><\/span><br \/>\n<span style=\"font-size: 12pt;\"> <code>\u00a0 ServerName redmine.example.com:80<\/code><\/span><br \/>\n<span style=\"font-size: 12pt;\"> <code>\u00a0 ServerAdmin webmaster@example.com<\/code><\/span><br \/>\n<span style=\"font-size: 12pt;\"> <code>\u00a0 DocumentRoot \/var\/www\/vhosts\/redmine\/public\/<\/code><\/span><\/p>\n<p style=\"padding-left: 30px;\"><span style=\"font-size: 12pt;\"><code>\u00a0 &lt;Directory \/var\/www\/vhosts\/redmine\/public\/&gt;<\/code><\/span><br \/>\n<span style=\"font-size: 12pt;\"> <code>\u00a0 \u00a0 Options Indexes FollowSymLinks -MultiViews -ExecCGI<\/code><\/span><br \/>\n<span style=\"font-size: 12pt;\"> <code>\u00a0 \u00a0 AllowOverride All<\/code><\/span><br \/>\n<span style=\"font-size: 12pt;\"> <code>\u00a0 \u00a0 PassengerResolveSymlinksInDocumentRoot on<\/code><\/span><br \/>\n<span style=\"font-size: 12pt;\"> <code>\u00a0 &lt;\/Directory&gt;<\/code><\/span><br \/>\n<span style=\"font-size: 12pt;\"> <code> &lt;\/VirtualHost&gt;<\/code><\/span><\/p>\n<ul>\n<li><span style=\"font-size: 12pt;\">gem \u201cmysql2\u2033 \u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3059\u308b<\/span><\/li>\n<\/ul>\n<p style=\"padding-left: 30px;\"><span style=\"font-size: 12pt;\"><code>$\u00a0gem install mysql2<\/code><\/span><\/p>\n<ul>\n<li><span style=\"font-size: 12pt;\">gem \u201cbundler\u201d \u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3059\u308b<\/span><\/li>\n<\/ul>\n<p class=\"wp_syntax\" style=\"padding-left: 30px;\"><span style=\"font-size: 12pt;\"><code>$ gem install bundler<\/code><\/span><\/p>\n<p style=\"padding-left: 30px;\"><span style=\"font-size: 12pt;\"><code>$ rake generate_session_store<\/code><\/span><\/p>\n<p style=\"padding-left: 30px;\"><span style=\"font-size: 12pt;\"><code>(in \/var\/lib\/redmine)<\/code><\/span><\/p>\n<p style=\"padding-left: 30px;\"><span style=\"font-size: 12pt;\"><code>Please configure your config\/database.yml first<\/code><\/span><\/p>\n<p style=\"padding-left: 30px;\"><span style=\"font-size: 12pt;\"><code>Could not find gem 'rails (= 4.2.7.1)' in any of the gem sources listed in your Gemfile or available on this machine.<\/code><\/span><\/p>\n<p style=\"padding-left: 30px;\"><span style=\"font-size: 12pt;\"><code>Run `bundle install` to install missing gems.<\/code><\/span><\/p>\n<p style=\"padding-left: 30px;\"><span style=\"font-size: 12pt;\">\u30a8\u30e9\u30fc\u306b\u306a\u308b\u306e\u3067\u3001bundle install\u3057\u3066\u307f\u308b\u3002<\/span><\/p>\n<p style=\"padding-left: 30px;\"><span style=\"font-size: 12pt;\"><code>$ bundle install<\/code><\/span><\/p>\n<p style=\"padding-left: 30px;\"><span style=\"font-size: 12pt;\"><code>$ rake generate_session_store<\/code><\/span><\/p>\n<p style=\"padding-left: 30px;\"><span style=\"font-size: 12pt;\"><code>(in \/var\/lib\/redmine)<\/code><\/span><\/p>\n<p style=\"padding-left: 30px;\"><span style=\"font-size: 12pt;\"><code>Please configure your config\/database.yml first<\/code><\/span><\/p>\n<p style=\"padding-left: 30px;\"><span style=\"font-size: 12pt;\"><code>\/usr\/local\/rvm\/gems\/ruby-2.3.0\/gems\/htmlentities-4.3.1\/lib\/htmlentities\/mappings\/expanded.rb:465: warning: key \"inodot\" is duplicated and overwritten on line 466<\/code><\/span><\/p>\n<p style=\"padding-left: 30px;\"><span style=\"font-size: 12pt;\"><code>Note: The rake task generate_session_store has been deprecated, please use the replacement version generate_secret_token<\/code><\/span><\/p>\n<ul>\n<li><span style=\"font-size: 12pt;\">\u30b7\u30fc\u30af\u30ec\u30c3\u30c8\u30c8\u30fc\u30af\u30f3\u3092\u4f5c\u6210\u3059\u308b<\/span><\/li>\n<\/ul>\n<p style=\"padding-left: 30px;\"><span style=\"font-size: 12pt;\"><code>$\u00a0 <span class=\"crayon-e\">bundle <\/span><span class=\"crayon-e\">exec <\/span><span class=\"crayon-e\">rake <\/span><span class=\"crayon-v\">generate_secret_token<\/span><\/code><\/span><\/p>\n<ul>\n<li><span style=\"font-size: 12pt;\">\u30c7\u30fc\u30bf\u30d9\u30fc\u30b9\u306e\u79fb\u884c\u3092\u3059\u308b<\/span><\/li>\n<\/ul>\n<p style=\"padding-left: 30px;\"><span style=\"font-size: 12pt;\"><code><span class=\"crayon-sy\">$<\/span> <span class=\"crayon-v\">RAILS_ENV<\/span><span class=\"crayon-o\">=<\/span><span class=\"crayon-e\">production <\/span><span class=\"crayon-e\">bundle <\/span><span class=\"crayon-e\">exec <\/span><span class=\"crayon-e\">rake <\/span><span class=\"crayon-v\">db<\/span><span class=\"crayon-o\">:<\/span><span class=\"crayon-v\">migrate<\/span><\/code><\/span><\/p>\n<ul>\n<li><span style=\"font-size: 12pt;\">\u30c7\u30d5\u30a9\u30eb\u30c8\u30c7\u30fc\u30bf\u306e\u53cd\u6620<\/span><\/li>\n<\/ul>\n<p style=\"padding-left: 30px;\"><span style=\"font-size: 12pt;\"><code><span class=\"crayon-sy\">$<\/span>\u00a0<span class=\"crayon-v\">RAILS_ENV<\/span><span class=\"crayon-o\">=<\/span><span class=\"crayon-e\">production\u00a0<\/span><span class=\"crayon-e\">bundle\u00a0<\/span><span class=\"crayon-e\">exec\u00a0<\/span><span class=\"crayon-e\">rake\u00a0<\/span><span class=\"crayon-v\">redmine<\/span><span class=\"crayon-o\">:<\/span><span class=\"crayon-v\">load_default_data<\/span><\/code><\/span><\/p>\n<p style=\"padding-left: 30px;\"><span style=\"font-size: 12pt;\">Web\u30a2\u30af\u30bb\u30b9\u3057\u3066\u3082\u30d7\u30ed\u30b8\u30a7\u30af\u30c8\u306a\u3069\u304c\u8868\u793a\u3055\u308c\u305a\u3001\u30a8\u30e9\u30fc\u30ed\u30b0\u3092\u78ba\u8a8d\u3002<\/span><\/p>\n<p style=\"padding-left: 30px;\"><span style=\"font-size: 12pt;\">config\/databese.yml\u304c\u306a\u3044\u3068\u3044\u3046\u30a8\u30e9\u30fc\u3060\u3063\u305f\u306e\u3067<\/span><\/p>\n<p style=\"padding-left: 30px;\"><span style=\"font-size: 12pt;\"><code>$ ln -s \/etc\/redmine\/default\/database.yml \/var\/lib\/redmine\/config\/<\/code><\/span><\/p>\n<p style=\"padding-left: 30px;\"><span style=\"font-size: 12pt;\">\u3067\u30b7\u30f3\u30dc\u30ea\u30c3\u30af\u30ea\u30f3\u30af\u3092\u8cbc\u3063\u3066<\/span><\/p>\n<p style=\"padding-left: 30px;\"><span style=\"font-size: 12pt;\"><code>$ bundle install<\/code><\/span><\/p>\n<p style=\"padding-left: 30px;\"><span style=\"font-size: 12pt;\">\u3067\u898b\u3048\u308b\u3088\u3046\u306b \u306a\u3063\u305f\u3002<\/span><\/p>\n<p style=\"padding-left: 30px;\"><span style=\"font-size: 12pt;\">\u3057\u304b\u3057\u306a\u304c\u3089\u3001\u30a2\u30c3\u30d7\u30b0\u30ec\u30fc\u30c9\u524d\u306e\u30c7\u30fc\u30bf\u3092\u79fb\u884c\u3057\u3066\u3044\u306a\u3044\u306e\u3067\u3001project\u3092\u30af\u30ea\u30c3\u30af\u3057\u3066\u3082\uff08\u5f53\u7136\u306a\u304c\u3089\uff09\u8868\u793a\u30a8\u30e9\u30fc\u3068\u306a\u308b\u3002<\/span><\/p>\n<p style=\"padding-left: 30px;\"><span style=\"font-size: 12pt;\"><code>$ cd \/var\/lib\/redmine<\/code><\/span><\/p>\n<p style=\"padding-left: 30px;\"><span style=\"font-size: 12pt;\"><code>$ bundle exec rake db:migrate RAILS_ENV=production<\/code><\/span><\/p>\n<p style=\"padding-left: 30px;\"><span style=\"font-size: 12pt;\"><code>$ \/etc\/init.d\/apache2 restart<\/code><\/span><\/p>\n<p style=\"padding-left: 30px;\"><span style=\"font-size: 12pt;\">\u3067\u3088\u3046\u3084\u304fWeb\u30a2\u30af\u30bb\u30b9\u3067\u304d\u308b\u3088\u3046\u306b\u306a\u3063\u305f\u3002<\/span><\/p>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u30b5\u30fc\u30d0\u306eredmine\u30922.* \u304b\u30893.0\u306b\u30a2\u30c3\u30d7\u30b0\u30ec\u30fc\u30c9\u3059\u308b \u524d\u63d0\uff1aUbuntu 16.04 LTS 1. ruby, rails, bundler\u3092\u30a2\u30f3\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb $ apt-get remove ruby rai [&hellip;]<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"jetpack_post_was_ever_published":false,"_jetpack_newsletter_access":"","jetpack_publicize_message":"","jetpack_is_tweetstorm":false,"jetpack_publicize_feature_enabled":true,"jetpack_social_post_already_shared":true,"jetpack_social_options":{"image_generator_settings":{"template":"highway","enabled":false}}},"categories":[13,4,3],"tags":[],"jetpack_publicize_connections":[],"jetpack_featured_media_url":"","jetpack_sharing_enabled":true,"jetpack_shortlink":"https:\/\/wp.me\/p6KCmj-2U","jetpack-related-posts":[{"id":147,"url":"https:\/\/wordpress.nabecyan.dyndns.org\/?p=147","url_meta":{"origin":180,"position":0},"title":"Lubuntu\u306b\u30ea\u30e2\u30fc\u30c8\u30c7\u30b9\u30af\u30c8\u30c3\u30d7\u63a5\u7d9a","author":"nabecyan","date":"2015\u5e744\u670813\u65e5","format":false,"excerpt":"Lutbuntu\u306bXRDP\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3057\u3066\u30ea\u30e2\u30fc\u30c8\u30c7\u30b9\u30af\u30c8\u30c3\u30d7\u63a5\u7d9a\u3067\u304d\u308b\u3088\u3046\u306b\u3057\u305f\u3002 1.xrdp\u2026","rel":"","context":"Computing","block_context":{"text":"Computing","link":"https:\/\/wordpress.nabecyan.dyndns.org\/?cat=4"},"img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]},{"id":31,"url":"https:\/\/wordpress.nabecyan.dyndns.org\/?p=31","url_meta":{"origin":180,"position":1},"title":"Lion\u4e0a\u306eParallels\u306bSnowLeopard\u3092\u5165\u308c\u308b","author":"wp-post","date":"2011\u5e749\u67084\u65e5","format":false,"excerpt":"Lion\u306b\u3057\u3066\u3001Rosetta\u304c\u30b5\u30dd\u30fc\u30c8\u3055\u308c\u306a\u304f\u306a\u3063\u305f\u306e\u3067\u3001SnowLeopard\u3092\u4eee\u60f3\u30de\u30b7\u30f3\u3068\u3057\u3066\u2026","rel":"","context":"Computing","block_context":{"text":"Computing","link":"https:\/\/wordpress.nabecyan.dyndns.org\/?cat=4"},"img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]},{"id":11,"url":"https:\/\/wordpress.nabecyan.dyndns.org\/?p=11","url_meta":{"origin":180,"position":2},"title":"fit-PC2i\u3092\u30a2\u30af\u30bb\u30b9\u30dd\u30a4\u30f3\u30c8\u5316\u3057\u305f","author":"nabecyan","date":"2010\u5e7412\u670821\u65e5","format":false,"excerpt":"fit-PC2i\u306eRalink RT3070 USB\u7121\u7ddaLAN\u3092\u4f7f\u3063\u3066\u30a2\u30af\u30bb\u30b9\u30dd\u30a4\u30f3\u30c8\u5316\u3059\u308b\u3053\u3068\u306b\u6210\u2026","rel":"","context":"Computing","block_context":{"text":"Computing","link":"https:\/\/wordpress.nabecyan.dyndns.org\/?cat=4"},"img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]},{"id":41,"url":"https:\/\/wordpress.nabecyan.dyndns.org\/?p=41","url_meta":{"origin":180,"position":3},"title":"iPhone3G\u3092Jailbreak &#038; SIM\u30ed\u30c3\u30af\u89e3\u9664","author":"wp-post","date":"2011\u5e7410\u670811\u65e5","format":false,"excerpt":"B-Mobile\u306eFair 1GB\u3092\u8cb7\u3063\u3066\u3001iPhone 3G\u3092Jailbreak & SI\u2026","rel":"","context":"Computing","block_context":{"text":"Computing","link":"https:\/\/wordpress.nabecyan.dyndns.org\/?cat=4"},"img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]},{"id":47,"url":"https:\/\/wordpress.nabecyan.dyndns.org\/?p=47","url_meta":{"origin":180,"position":4},"title":"iPhone3G JailBreak\u3057\u305f\u3082\u306e\u306e\u3001YouTube\u304c\u898b\u308c\u306a\u3044\u2026","author":"wp-post","date":"2011\u5e7410\u670813\u65e5","format":false,"excerpt":"JailBreak\u3057\u305f\u3082\u306e\u306e\u3001YouTube\u304c\u898b\u3048\u306a\u304f\u306a\u3063\u3066\u3044\u305f\u3002 Safari\u304b\u3089\u76f4\u63a5Youtub\u2026","rel":"","context":"Computing","block_context":{"text":"Computing","link":"https:\/\/wordpress.nabecyan.dyndns.org\/?cat=4"},"img":{"alt_text":"","src":"https:\/\/i0.wp.com\/iphoners.org\/images\/2009\/cydia_home.jpg?resize=350%2C200","width":350,"height":200},"classes":[]},{"id":125,"url":"https:\/\/wordpress.nabecyan.dyndns.org\/?p=125","url_meta":{"origin":180,"position":5},"title":"ssh\u306e\u30a2\u30af\u30bb\u30b9\u5236\u9650","author":"nabecyan","date":"2014\u5e744\u670830\u65e5","format":false,"excerpt":"ssh\u3067\u63a5\u7d9a\u304c\u3046\u307e\u304f\u3067\u304d\u306a\u3044\u3053\u3068\u304c\u3042\u3063\u3066\u3001\u8abf\u67fb\u3002 Jegan\u306b\u306f\u30ed\u30fc\u30ab\u30eb\u30cd\u30c3\u30c8\u306e\u3069\u306e\u30de\u30b7\u30f3\u304b\u3089\u3082SS\u2026","rel":"","context":"Computing","block_context":{"text":"Computing","link":"https:\/\/wordpress.nabecyan.dyndns.org\/?cat=4"},"img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]}],"_links":{"self":[{"href":"https:\/\/wordpress.nabecyan.dyndns.org\/index.php?rest_route=\/wp\/v2\/posts\/180"}],"collection":[{"href":"https:\/\/wordpress.nabecyan.dyndns.org\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/wordpress.nabecyan.dyndns.org\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/wordpress.nabecyan.dyndns.org\/index.php?rest_route=\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/wordpress.nabecyan.dyndns.org\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=180"}],"version-history":[{"count":5,"href":"https:\/\/wordpress.nabecyan.dyndns.org\/index.php?rest_route=\/wp\/v2\/posts\/180\/revisions"}],"predecessor-version":[{"id":242,"href":"https:\/\/wordpress.nabecyan.dyndns.org\/index.php?rest_route=\/wp\/v2\/posts\/180\/revisions\/242"}],"wp:attachment":[{"href":"https:\/\/wordpress.nabecyan.dyndns.org\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=180"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/wordpress.nabecyan.dyndns.org\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=180"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/wordpress.nabecyan.dyndns.org\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=180"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}