{"id":2990,"date":"2019-09-07T16:55:06","date_gmt":"2019-09-07T07:55:06","guid":{"rendered":"https:\/\/www.xenos.jp\/~zen\/blog2\/?p=2990"},"modified":"2019-09-07T16:55:07","modified_gmt":"2019-09-07T07:55:07","slug":"post-2990","status":"publish","type":"post","link":"https:\/\/www.xenos.jp\/~zen\/blog2\/index.php\/2019\/09\/07\/post-2990\/","title":{"rendered":"Ruby on Rails\u306e\u30a2\u30d7\u30ea\u3092\u30b5\u30fc\u30d0\u8d77\u52d5\u6642\u306b\u81ea\u52d5\u8d77\u52d5\u3055\u305b\u308b\u65b9\u6cd5\u306e\u8abf\u67fb\u30e1\u30e2"},"content":{"rendered":"\n<p>Ruby on Rails\u306e\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u3092\u516c\u958b\u3059\u308b\u3053\u3068\u306b\u306a\u3063\u305f\u306e\u3067\u3001\u30b5\u30fc\u30d0\u3068\u3057\u3066\u306e\u5b9f\u884c\u74b0\u5883\u3092\u8abf\u3079\u305f\u3002<\/p>\n\n\n\n<p>\u30e1\u30e2\uff11<\/p>\n\n\n\n<p>\u00a0Ruby on Rails\u3067\u958b\u767a\u3057\u3066\u3044\u308b\u3068\u304d\u306f\u3001\u300cbundle exec rails server -e production\u300d\u3067\u3001\u5b9f\u884c\u3057\u3001\u30d6\u30e9\u30a6\u30b6\u3067\u30a2\u30af\u30bb\u30b9\u3067\u304d\u308b\u3088\u3046\u306b\u3059\u308b\u3002\uff08\u4ffa\u306f\u958b\u767a\u3057\u3066\u3044\u306a\u3044\u3051\u3069\uff09<\/p>\n\n\n\n<p>production\u306f\u3001\u74b0\u5883\u5909\u6570\u306eRAILS_ENV\u3067\u6307\u5b9a\u3057\u3066\u3044\u308b\u3082\u306e\u3002<\/p>\n\n\n\n<p>\u30e1\u30e2\uff12<\/p>\n\n\n\n<p>Rails\u306e\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u3092\u516c\u958b\u3059\u308b\u306b\u306f\u3001Rails\u30b5\u30fc\u30d0\u306eUnicorn\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3057\u3066\u3001\u3053\u308c\u3092\u8a2d\u5b9a\u3057\u3066\u3001\u8d77\u52d5\u3055\u305b\u308b\u3053\u3068\u3067\u516c\u958b\u3067\u304d\u308b\u3002<\/p>\n\n\n\n<p>Unicorn\u306f\u3001\u8d77\u52d5\u6642\u306b\u3001RAILS\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u306e\u30db\u30fc\u30e0\u306e\u30d1\u30b9\u3067\u3001RAILS_ENV\u3068\u3001Unicorn\u306e\u30b3\u30f3\u30d5\u30a3\u30b0\u30d5\u30a1\u30a4\u30eb\u3092\u8aad\u307f\u8fbc\u307f\u8d77\u52d5\u3059\u308b\u3002\u3053\u308c\u3067\u3001\u4f5c\u6210\u3057\u305fRAILS\u306e\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u304c\u5b9f\u884c\u3055\u308c\u308b\u3088\u3046\u306b\u306a\u308b\u3002<\/p>\n\n\n\n<p>\u3044\u308d\u3044\u308d\u3068\u8abf\u3079\u3066\u3044\u308b\u3068\u3001\u516c\u958b\u3055\u308c\u308b\u30a2\u30d7\u30ea\u306fRAILS_ENV=production\u306b\u306a\u3063\u3066\u3044\u308b\u3002production\u304c\u4e00\u822c\u7684\u306a\u3088\u3046\u3060\u3002\u958b\u767a\u3055\u308c\u305f\u3082\u306e\u3092\u516c\u958b\u3059\u308b\u524d\u306b\u78ba\u8a8d\u306f\u5fc5\u8981\u305d\u3046\u3060\u304c\u3002<\/p>\n\n\n\n<p>Rails\u30b5\u30fc\u30d0\u306eUnicorn\u306f\u3001Apache\u3084Nginx\u3068\u9023\u643a\u3055\u305b\u308b\u3002\u3053\u308c\u306b\u3088\u308a\u3001\u30a6\u30a7\u30d6\u30b5\u30fc\u30d0\u306e\u30a2\u30af\u30bb\u30b9\u3067\u3001Rails\u306e\u5b9f\u884c\u90e8\u5206\u3092Unicorn\u306b\u6e21\u3059\u3053\u3068\u304c\u3067\u304d\u308b\u3002<\/p>\n\n\n\n<p>Rails\u30b5\u30fc\u30d0\u306b\u306f\u3001Unicorn\u4ee5\u5916\u306b\u3082\u3042\u308b\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Ruby on Rails\u306e\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u3092\u516c\u958b\u3059\u308b\u3053\u3068\u306b\u306a\u3063\u305f\u306e\u3067\u3001\u30b5\u30fc\u30d0\u3068\u3057\u3066\u306e\u5b9f\u884c\u74b0\u5883\u3092\u8abf\u3079\u305f\u3002 \u30e1\u30e2\uff11 \u00a0Ruby on Rails\u3067\u958b\u767a\u3057\u3066\u3044\u308b\u3068\u304d\u306f\u3001\u300cbundle exec rails server -e [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[7],"tags":[151],"class_list":["post-2990","post","type-post","status-publish","format-standard","hentry","category-tech-memo","tag-ruby"],"_links":{"self":[{"href":"https:\/\/www.xenos.jp\/~zen\/blog2\/index.php\/wp-json\/wp\/v2\/posts\/2990","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.xenos.jp\/~zen\/blog2\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.xenos.jp\/~zen\/blog2\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.xenos.jp\/~zen\/blog2\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.xenos.jp\/~zen\/blog2\/index.php\/wp-json\/wp\/v2\/comments?post=2990"}],"version-history":[{"count":2,"href":"https:\/\/www.xenos.jp\/~zen\/blog2\/index.php\/wp-json\/wp\/v2\/posts\/2990\/revisions"}],"predecessor-version":[{"id":3036,"href":"https:\/\/www.xenos.jp\/~zen\/blog2\/index.php\/wp-json\/wp\/v2\/posts\/2990\/revisions\/3036"}],"wp:attachment":[{"href":"https:\/\/www.xenos.jp\/~zen\/blog2\/index.php\/wp-json\/wp\/v2\/media?parent=2990"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.xenos.jp\/~zen\/blog2\/index.php\/wp-json\/wp\/v2\/categories?post=2990"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.xenos.jp\/~zen\/blog2\/index.php\/wp-json\/wp\/v2\/tags?post=2990"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}