{"id":1290,"date":"2014-12-13T23:01:50","date_gmt":"2014-12-13T14:01:50","guid":{"rendered":"http:\/\/tech.akat.info\/?p=1290"},"modified":"2014-12-16T23:37:48","modified_gmt":"2014-12-16T14:37:48","slug":"heroku","status":"publish","type":"post","link":"https:\/\/tech.akat.info\/?p=1290","title":{"rendered":"Heroku"},"content":{"rendered":"<h1>Heroku\u3068\u306f<\/h1>\n<p>PaaS\u74b0\u5883\u3002Web\u30a2\u30d7\u30ea(\u30db\u30fc\u30e0\u30da\u30fc\u30b8)\u304c\u4f5c\u6210\u3067\u304d\u308b<br \/>\n\u57fa\u672c\u7684\u306b\u7121\u6599\u3067\u5229\u7528\u3067\u304d\u3001\u5e83\u544a\u304c\u51fa\u3066\u3053\u306a\u3044\u3053\u3068\u304b\u3089\u4ed6\u306e\u30b5\u30fc\u30d3\u30b9\u3068\u6bd4\u8f03\u3057\u3066\u30e1\u30ea\u30c3\u30c8\u304c\u5927\u304d\u3044<br \/>\n\u30c7\u30fc\u30bf\u30d9\u30fc\u30b9\u306f\u7121\u6599\u7bc4\u56f2\u3067\u306fPostgreSQL\u306e\u307f\u4f7f\u7528\u53ef\u80fd(\u30d7\u30e9\u30b0\u30a4\u30f3\u3092\u5165\u308c\u308b\u3068\u3001mysql\u3084NoSQL\u3082\u5229\u7528\u53ef\u80fd)<br \/>\nHeroku\u306f\u30e6\u30fc\u30b6\u3068Heroku\u5074\u306e\u30bd\u30fc\u30b9\u30b3\u30fc\u30c9\u306e\u3084\u308a\u3068\u308a\u3092Git\u3067\u5b9f\u65bd\u3059\u308b<\/p>\n<h2>dyno<\/h2>\n<p>dyno(\u30c0\u30a4\u30ce)\u306fHeroku\u72ec\u81ea\u306e\u5358\u4f4d\u3067\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u30b5\u30fc\u30d0\u30fc\u306e1\u30d7\u30ed\u30bb\u30b9\u3092\u8868\u3059\u5358\u4f4d<br \/>\n\u30fb\u7121\u6599\u30671Dyno\u3092750\u6642\u9593\u5229\u7528\u3067\u304d\u308b<br \/>\n\u30fb1dyno\u3067\u79d2\u959310-50\u30ea\u30af\u30a8\u30b9\u30c8\u3092\u51e6\u7406\u53ef\u80fd<br \/>\n\u30fb1dyno\u3067\u6700\u5927300MB\u306e\u30e1\u30e2\u30ea\u304c\u5229\u7528\u53ef\u80fd<br \/>\n\u30fbdyno\u306f1\u6642\u9593\u30a2\u30af\u30bb\u30b9\u304c\u306a\u3044\u3068\u30a2\u30a4\u30c9\u30eb\u72b6\u614b\u3068\u306a\u308b(1\u6642\u9593\u30a2\u30af\u30bb\u30b9\u304c\u306a\u3044\u3068\u505c\u6b62\u3059\u308b\u3001\u8d77\u52d5\u306b\u306f\u6642\u9593\u304c\u304b\u304b\u308b)<br \/>\n\u30fbdyno\u306b\u30a2\u30c3\u30d7\u30ed\u30fc\u30c9\u3057\u305f\u30d5\u30a1\u30a4\u30eb\u306f\u3001\u30a2\u30a4\u30c9\u30eb\u6642\u3082\u3057\u304f\u306f\u518d\u8d77\u52d5\u6642\u306b\u6d88\u3048\u308b(\u305d\u306e\u305f\u3081cron\u306a\u3069\u3067\u30a2\u30af\u30bb\u30b9\u3059\u308b\u3053\u3068\u304c\u5e38\u5957\u624b\u6bb5)<br \/>\n\u30fb\u30ec\u30b9\u30dd\u30f3\u30b9\u306b30\u79d2\u304b\u304b\u308b\u30ea\u30af\u30a8\u30b9\u30c8\u306f\u554f\u7b54\u7121\u7528\u3067\u30bf\u30a4\u30e0\u30a2\u30a6\u30c8<\/p>\n<h1>Heroku\u30b3\u30de\u30f3\u30c9<\/h1>\n<p>[Heroku Toolbelt]\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3059\u308b\u3068\u3001\u30c7\u30b9\u30af\u30c8\u30c3\u30d7\u306b[Git Bash]\u304c\u4f5c\u6210\u3055\u308c\u308b<br \/>\n\u3042\u3068\u306f\u516c\u5f0f\u30b5\u30a4\u30c8\u306b\u5f93\u3046\u3068\u30b9\u30e0\u30fc\u30ba\u306b\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3067\u304d\u308b\u3001\u4ee5\u4e0b\u306f\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u5f8c\u306ehistory\u30b3\u30de\u30f3\u30c9<br \/>\n<a href=\"http:\/\/tech.akat.info\/wp-content\/uploads\/2014\/12\/2014-12-13_114318.png\"><img loading=\"lazy\" decoding=\"async\" src=\"http:\/\/tech.akat.info\/wp-content\/uploads\/2014\/12\/2014-12-13_114318.png\" alt=\"2014-12-13_114318\" width=\"787\" height=\"430\" class=\"alignnone size-full wp-image-1291\" \/><\/a><\/p>\n<pre class=\"brush: plain; title: Heroku\u30ea\u30dd\u30b8\u30c8\u30ea\u306b\u767b\u9332\u3059\u308b; notranslate\" title=\"Heroku\u30ea\u30dd\u30b8\u30c8\u30ea\u306b\u767b\u9332\u3059\u308b\">\r\ngit config --global user.email &quot;shimizu.r.hiroaki@gmail.com&quot;\r\ngit config --global user.name &quot;shimizu.hiroaki&quot;\r\nget commit -m &quot;add index.html&quot;\r\ngit push heroku master\r\n### \u30d6\u30e9\u30a6\u30b6\u3067\u30da\u30fc\u30b8\u3092\u958b\u304f ###\r\nheroku open\r\n### \u30ed\u30b0\u3092\u78ba\u8a8d\u3059\u308b ###\r\nheroku logs --tail\r\n<\/pre>\n<h1>\u53c2\u8003URL<\/h1>\n<p>\u77e5\u3063\u3066\u304a\u304d\u305f\u3044\uff01Heroku\u3092\u4f7f\u3046\u4e0a\u3067\u306f\u5f53\u305f\u308a\u524d\uff1f\u306e16\u306e\u5e38\u8b58<br \/>\nhttp:\/\/blog.ruedap.com\/2011\/04\/29\/ruby-heroku-web-app-development-tips-1<br \/>\nHeroku\u516c\u5f0f\u30b5\u30a4\u30c8 \u2190\u89aa\u5207\u4e01\u5be7\u306b\u8a18\u8f09\u3055\u308c\u3066\u3044\u308b<br \/>\nhttps:\/\/devcenter.heroku.com\/articles\/getting-started-with-php#introduction<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Heroku\u3068\u306f PaaS\u74b0\u5883\u3002Web\u30a2\u30d7\u30ea(\u30db\u30fc\u30e0\u30da\u30fc\u30b8)\u304c\u4f5c\u6210\u3067\u304d\u308b \u57fa\u672c\u7684\u306b\u7121\u6599\u3067\u5229\u7528\u3067\u304d\u3001\u5e83\u544a\u304c\u51fa\u3066\u3053\u306a\u3044\u3053\u3068\u304b\u3089\u4ed6\u306e\u30b5\u30fc\u30d3\u30b9\u3068\u6bd4\u8f03\u3057\u3066\u30e1\u30ea\u30c3\u30c8\u304c\u5927\u304d\u3044 \u30c7\u30fc\u30bf\u30d9\u30fc\u30b9\u306f\u7121\u6599\u7bc4\u56f2\u3067\u306fPostgreSQL\u306e\u307f\u4f7f\u7528\u53ef\u80fd [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_monsterinsights_skip_tracking":false,"_monsterinsights_sitenote_active":false,"_monsterinsights_sitenote_note":"","_monsterinsights_sitenote_category":0,"footnotes":""},"categories":[1],"tags":[],"_links":{"self":[{"href":"https:\/\/tech.akat.info\/index.php?rest_route=\/wp\/v2\/posts\/1290"}],"collection":[{"href":"https:\/\/tech.akat.info\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/tech.akat.info\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/tech.akat.info\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/tech.akat.info\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=1290"}],"version-history":[{"count":3,"href":"https:\/\/tech.akat.info\/index.php?rest_route=\/wp\/v2\/posts\/1290\/revisions"}],"predecessor-version":[{"id":1304,"href":"https:\/\/tech.akat.info\/index.php?rest_route=\/wp\/v2\/posts\/1290\/revisions\/1304"}],"wp:attachment":[{"href":"https:\/\/tech.akat.info\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=1290"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/tech.akat.info\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=1290"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/tech.akat.info\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=1290"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}