{"id":731,"date":"2022-12-11T16:28:22","date_gmt":"2022-12-11T07:28:22","guid":{"rendered":"https:\/\/trend-appsweb.com\/myportfolio\/?p=731"},"modified":"2024-02-11T18:16:53","modified_gmt":"2024-02-11T09:16:53","slug":"laravel%e3%81%a7%e4%bd%9c%e3%81%a3%e3%81%9f%e3%82%a2%e3%83%97%e3%83%aa%e3%82%92heroku%e3%81%ab%e3%82%a2%e3%83%83%e3%83%97%e3%83%ad%e3%83%bc%e3%83%89","status":"publish","type":"post","link":"https:\/\/trend-appsweb.com\/myportfolio\/?p=731","title":{"rendered":"Laravel\u3067\u4f5c\u3063\u305f\u30a2\u30d7\u30ea\u3092Heroku\u306b\u30a2\u30c3\u30d7\u30ed\u30fc\u30c9"},"content":{"rendered":"<div id=\"sitetitle\" style=\"display: none;\"><\/div>\n<h3 class=\"midashi\">\u30c6\u30fc\u30de<\/h3>\n<p>\u307e\u3044\u3069\uff01\uff01naoto555\u3067\u3059\u3002\u4eca\u56de\u306f\u3001Laravel\u3067\u4f5c\u6210\u3057\u305f\u30a2\u30d7\u30ea\u3092Heroku\u306b\u30a2\u30c3\u30d7\u3057\u3066\u3044\u3053\u3046\u3068\u601d\u3044\u307e\u3059\u3002<\/p>\n<p>2022\/11\/28\u304b\u3089\u6709\u6599\u306b\u306a\u308a\u307e\u3057\u305f\u306d\u3002\u6599\u91d1\u30d7\u30e9\u30f3\u306b\u95a2\u3057\u3066\u306e\u8aac\u660e\u3082\u8efd\u304f\u8e0f\u307e\u3048\u3064\u3064\u3001Heroku\u3078\u306e\u30a2\u30c3\u30d7\u30ed\u30fc\u30c9\u624b\u9806\u3092\u89e3\u8aac\u3057\u3066\u3044\u3053\u3046\u3068\u601d\u3044\u307e\u3059\u3002<span style=\"color: blue;\">(2024.1\u8a18\u8f09)<\/span><\/p>\n<h3 class=\"midashi\">\u958b\u767a\u74b0\u5883<\/h3>\n<div>\n<table style=\"height: 184px; width: 52.5389%; border-collapse: collapse; background-color: b8dae6; border-style: solid; border-color: #998d8d;\">\n<tbody>\n<tr style=\"height: 46px;\">\n<td style=\"width: 28.9191%; height: 46px; background-color: #b8dae6;\">\u7d71\u5408\u958b\u767a\u74b0\u5883<\/td>\n<td style=\"width: 29.3499%; height: 46px;\">aws cloud9<\/td>\n<\/tr>\n<tr style=\"height: 46px;\">\n<td style=\"width: 28.9191%; height: 46px; background-color: #b8dae6;\">PHP<\/td>\n<td style=\"width: 29.3499%; height: 46px;\">8.1.11<\/td>\n<\/tr>\n<tr style=\"height: 46px;\">\n<td style=\"width: 28.9191%; height: 46px; background-color: #b8dae6;\">Laravel<\/td>\n<td style=\"width: 29.3499%; height: 46px;\">9.34<\/td>\n<\/tr>\n<tr style=\"height: 46px;\">\n<td style=\"width: 28.9191%; height: 46px; background-color: #b8dae6;\">Database<\/td>\n<td style=\"width: 29.3499%; height: 46px;\">SQlite(version 3.7.17)<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<\/div>\n<h3 class=\"midashi\">\u4f5c\u6210\u624b\u9806<\/h3>\n<h4 class=\"tejun\">\u2460GIT\u306e\u521d\u671f\u5316<\/h4>\n<p>GIT\u7ba1\u7406\u3092\u3057\u3066\u3044\u306a\u3044\u65b9\u306fGIT\u521d\u671f\u5316\u3092\u307e\u305a\u884c\u3063\u3066\u4e0b\u3055\u3044\u3002GIT\u7ba1\u7406\u3057\u3066\u3044\u308b\u5834\u5408\u306f\u3053\u306e\u624b\u9806\u306f\u7701\u3044\u3066OK\u3067\u3059\u3002<\/p>\n<div class=\"hcb_wrap\" style=\"margin-top: -15px;\">\n<pre class=\"prism line-numbers lang-bash\" data-lang=\"Bash\"><code>#git\u7ba1\u7406\u3092\u306f\u3058\u3081\u308b\r\ngit init\r\n\r\n#\u30ef\u30fc\u30af\u30c4\u30ea\u30fc\u306e\u5909\u66f4\u3092\u30b9\u30c6\u30fc\u30b8\u306b\u8ffd\u52a0\r\ngit add .\r\n\r\n#\u30ed\u30fc\u30ab\u30eb\u30ea\u30dd\u30b8\u30c8\u30ea\u306b\u53cd\u6620\r\ngit commit -m \"my first commit\"\r\n<\/code><\/pre>\n<\/div>\n<h4 class=\"tejun\">\u2461\u30bf\u30fc\u30df\u30ca\u30eb\u306b\u30b3\u30de\u30f3\u30c9\u3092\u6253\u3061\u8fbc\u3093\u3067\u3001AWS\u306bHerokuCLI\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3059\u308b<\/h4>\n<div class=\"hcb_wrap\" style=\"margin: 0;\">\n<pre class=\"prism line-numbers lang-bash\" data-lang=\"Bash\"><code>curl -OL https:\/\/cli-assets.heroku.com\/heroku-linux-x64.tar.gz &amp;&amp; tar zxf heroku-linux-x64.tar.gz &amp;&amp; rm -f heroku-linux-x64.tar.gz &amp;&amp; sudo mv heroku \/usr\/local &amp;&amp; echo 'PATH=\/usr\/local\/heroku\/bin:$PATH' &gt;&gt; $HOME\/.bash_profile<\/code><\/pre>\n<\/div>\n<p>&nbsp;<\/p>\n<h4 class=\"tejun\">\u2462Shell\u306e\u66f4\u65b0\u3068\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3067\u304d\u305f\u304b\u3092\u78ba\u8a8d<\/h4>\n<p class=\"file_name\">\u30fbShell\u3092\u66f4\u65b0<\/p>\n<div class=\"hcb_wrap\" style=\"margin: 0;\">\n<pre class=\"prism line-numbers lang-bash\" data-lang=\"Bash\"><code>source ~\/.bash_profile<\/code><\/pre>\n<\/div>\n<p class=\"file_name\">\u30fbHerokuCLI\u306e\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u304c\u3067\u304d\u3066\u3044\u308b\u304b\u3092\u78ba\u8a8d\u3001\u4ee5\u4e0b\u30b3\u30de\u30f3\u30c9\u3067\u30d0\u30fc\u30b8\u30e7\u30f3\u304c\u53d6\u5f97\u3067\u304d\u308c\u3070OK<\/p>\n<div class=\"hcb_wrap\" style=\"margin: 0;\">\n<pre class=\"prism line-numbers lang-bash\" data-lang=\"Bash\"><code>heroku --version<\/code><\/pre>\n<\/div>\n<p>&nbsp;<\/p>\n<h4 class=\"tejun\">\u2463Heroku\u30a2\u30ab\u30a6\u30f3\u30c8\u3092\u4f5c\u6210<\/h4>\n<p><a href=\"https:\/\/signup.heroku.com\/login\">Heroku\u516c\u5f0f\u30da\u30fc\u30b8<\/a>\u306b\u30a2\u30af\u30bb\u30b9\u3057\u3001\u5fc5\u8981\u306a\u60c5\u5831\u3092\u5165\u529b\u3057\u307e\u3059\u3002<br \/>\n<a href=\"https:\/\/trend-appsweb.com\/wp-content\/uploads\/2022\/12\/heroku1.png\"><img fetchpriority=\"high\" decoding=\"async\" src=\"https:\/\/trend-appsweb.com\/wp-content\/uploads\/2022\/12\/heroku1.png\" alt=\"\" width=\"664\" height=\"730\" class=\"alignnone size-full wp-image-798\" srcset=\"https:\/\/trend-appsweb.com\/wp-content\/uploads\/2022\/12\/heroku1.png 664w, https:\/\/trend-appsweb.com\/wp-content\/uploads\/2022\/12\/heroku1-273x300.png 273w\" sizes=\"(max-width: 664px) 100vw, 664px\" \/><\/a><br \/>\n\u2192\u305d\u3046\u3059\u308b\u3068\u3001<span>\u767b\u9332\u3057\u305f\u30e1\u30fc\u30eb\u30a2\u30c9\u30ec\u30b9\u5b9b\u3066\u306bHeroku\u304b\u3089\u78ba\u8a8d\u30e1\u30fc\u30eb\u304c\u5c4a\u304f\u306e\u3067\u3001<br \/>\n<\/span><span>\u30ea\u30f3\u30af\u3092\u30af\u30ea\u30c3\u30af\u3057\u3066\u30d1\u30b9\u30ef\u30fc\u30c9\u3092\u8a2d\u5b9a\u3002<\/span><\/p>\n<p>\u305d\u306e\u5f8c\u3001Heroku\u306e\u30b5\u30fc\u30d3\u30b9\u3092\u5229\u7528\u3059\u308b\u305f\u3081\u306b\u30af\u30ec\u30ab\u306e\u60c5\u5831\u3092\u5165\u529b\u3057\u307e\u3059\u3002<br \/>\n\u300cAcount setting\u300d-&gt;\u300cBillding\u300d-&gt;\u300cAdd credit Card\u300d\u306e\u9806\u306b\u30af\u30ea\u30c3\u30af\u3057\u3066\u30af\u30ec\u30b8\u30c3\u30c8\u30ab\u30fc\u30c9\u60c5\u5831\u3092\u5165\u529b\u3057\u307e\u3059\u3002<\/p>\n<p><a href=\"https:\/\/trend-appsweb.com\/wp-content\/uploads\/2022\/12\/heroku_account.png\"><img decoding=\"async\" src=\"https:\/\/trend-appsweb.com\/wp-content\/uploads\/2022\/12\/heroku_account-1024x474.png\" alt=\"\" width=\"1024\" height=\"474\" class=\"alignnone size-large wp-image-801\" style=\"border: solid 3px gray;\" srcset=\"https:\/\/trend-appsweb.com\/wp-content\/uploads\/2022\/12\/heroku_account-1024x474.png 1024w, https:\/\/trend-appsweb.com\/wp-content\/uploads\/2022\/12\/heroku_account-300x139.png 300w, https:\/\/trend-appsweb.com\/wp-content\/uploads\/2022\/12\/heroku_account-768x355.png 768w, https:\/\/trend-appsweb.com\/wp-content\/uploads\/2022\/12\/heroku_account.png 1418w\" sizes=\"(max-width: 1024px) 100vw, 1024px\" \/><\/a><\/p>\n<p>\u30ab\u30fc\u30c9\u306e\u767b\u9332\u304c\u5b8c\u4e86\u3057\u305f\u3089\u3001\u30a2\u30d7\u30ea\u306e\u898f\u6a21\u306b\u5fdc\u3058\u3066\u30d7\u30e9\u30f3\u3092\u9078\u3073\u307e\u3059\u3002<br \/>\n\u4eca\u56de\u306fEco\u30d7\u30e9\u30f3\u3092\u9078\u629e\u3057\u307e\u3057\u305f\u3002<\/p>\n<p><a href=\"https:\/\/trend-appsweb.com\/wp-content\/uploads\/2022\/12\/heroku_account2.png\"><img decoding=\"async\" src=\"https:\/\/trend-appsweb.com\/wp-content\/uploads\/2022\/12\/heroku_account2-1024x834.png\" alt=\"\" width=\"1024\" height=\"834\" class=\"alignnone size-large wp-image-803\" style=\"border: solid 3px gray;\" srcset=\"https:\/\/trend-appsweb.com\/wp-content\/uploads\/2022\/12\/heroku_account2-1024x834.png 1024w, https:\/\/trend-appsweb.com\/wp-content\/uploads\/2022\/12\/heroku_account2-300x244.png 300w, https:\/\/trend-appsweb.com\/wp-content\/uploads\/2022\/12\/heroku_account2-768x626.png 768w, https:\/\/trend-appsweb.com\/wp-content\/uploads\/2022\/12\/heroku_account2.png 1359w\" sizes=\"(max-width: 1024px) 100vw, 1024px\" \/><\/a><\/p>\n<p>\u6709\u6599\u30d7\u30e9\u30f3\u306f\u4ee5\u4e0b\u306e3\u7a2e\u985e\u304c\u7528\u610f\u3055\u308c\u3066\u3044\u3066\u3001Basic\u4ee5\u4e0a\u306e\u30d7\u30e9\u30f3\u3067\u306f1\u30a2\u30d7\u30ea\u3054\u3068\u306b\u6599\u91d1\u304c\u767a\u751f\u3057\u307e\u3059\u3002<br \/>\nEco\u30d7\u30e9\u30f3\u306e\u5834\u5408\u306f\u8907\u6570\u306eWeb\u30a2\u30d7\u30ea\u3067\u30d7\u30e9\u30f3\u3092\u5171\u6709\u3067\u304d\u308b\u3051\u3069\u3001\u6bce\u67081000\u6642\u9593\u4ee5\u4e0a\u306e\u4f7f\u7528\u304c\u3067\u304d\u307e\u305b\u3093\u3002<br \/>\n\u8a73\u3057\u3044\u6599\u91d1\u30d7\u30e9\u30f3\u306b\u3064\u3044\u3066\u306f\u3001<a href=\"https:\/\/jp.heroku.com\/pricing#data-services\">\u516c\u5f0f\u30b5\u30a4\u30c8<\/a>\u3092\u3054\u53c2\u7167\u4e0b\u3055\u3044\u3002<\/p>\n<table style=\"border-collapse: collapse; width: 83.1778%; height: 324px;\">\n<tbody>\n<tr style=\"height: 46px;\">\n<td style=\"width: 13.3077%; height: 46px; background-color: #e4e4e4;\">\u30d7\u30e9\u30f3<\/td>\n<td style=\"width: 11.4615%; height: 46px; background-color: #e4e4e4;\">\u6708\u984d<\/td>\n<td style=\"width: 14.6411%; height: 46px; background-color: #e4e4e4;\">\u81ea\u52d5\u30b9\u30ea\u30fc\u30d7<\/td>\n<td style=\"width: 43.181%; height: 46px; background-color: #e4e4e4;\">\u5185\u5bb9<\/td>\n<\/tr>\n<tr style=\"height: 76px;\">\n<td style=\"width: 13.3077%; height: 76px;\">Eco<\/td>\n<td style=\"width: 11.4615%; height: 76px;\">$5<\/td>\n<td style=\"width: 14.6411%; height: 76px;\">30\u5206\u5f8c<\/td>\n<td style=\"width: 43.181%; height: 76px;\">\u4f7f\u7528\u6642\u9593\u304c1000\u6642\u9593\/\u6708\u3067\u5236\u9650<br \/>\n\u30a2\u30d7\u30ea\u306e\u4f7f\u7528\u6709\u7121\u306b\u95a2\u308f\u3089\u305a\u5b9a\u984d$5\u6599\u91d1\u304c\u304b\u304b\u308b<\/td>\n<\/tr>\n<tr style=\"height: 80px;\">\n<td style=\"width: 13.3077%; height: 80px;\">Basic<\/td>\n<td style=\"width: 11.4615%; height: 80px;\">$7<\/td>\n<td style=\"width: 14.6411%; height: 80px;\">\u306a\u3057<\/td>\n<td style=\"width: 43.181%; height: 80px;\">\u6642\u9593\u5236\u9650\u306a\u3057<br \/>\n\u4e0a\u96507\uff04\u3067\u8d77\u52d5\u6642\u9593\u5206\u3060\u3051\u8ab2\u91d1\u3055\u308c\u308b<\/td>\n<\/tr>\n<tr style=\"height: 76px;\">\n<td style=\"width: 13.3077%; height: 76px;\">\u30d7\u30ed\u30c0\u30af\u30b7\u30e7\u30f3<\/td>\n<td style=\"width: 11.4615%; height: 76px;\">$25~$50<\/td>\n<td style=\"width: 14.6411%; height: 76px;\">\u306a\u3057<\/td>\n<td style=\"width: 43.181%; height: 76px;\">\u6642\u9593\u5236\u9650\u306a\u3057<br \/>\n\u4e0a\u965025\uff04~$50\u3067\u8d77\u52d5\u6642\u9593\u5206\u3060\u3051\u8ab2\u91d1\u3055\u308c\u308b<\/td>\n<\/tr>\n<tr style=\"height: 46px;\">\n<td style=\"width: 13.3077%; height: 46px;\">\u30a2\u30c9\u30d0\u30f3\u30b9<\/td>\n<td style=\"width: 11.4615%; height: 46px;\">$250~$500<\/td>\n<td style=\"width: 14.6411%; height: 46px;\">\u306a\u3057<\/td>\n<td style=\"width: 43.181%; height: 46px;\">\u6642\u9593\u5236\u9650\u306a\u3057<br \/>\n\u4e0a\u9650250\uff04~$500\u3067\u8d77\u52d5\u6642\u9593\u5206\u3060\u3051\u8ab2\u91d1\u3055\u308c\u308b<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<div style=\"display: inline-block;\">\n<h4 class=\"tejun\">\u2464Heroku\u3078\u30ed\u30b0\u30a4\u30f3~\u30a2\u30d7\u30ea\u4f5c\u6210<\/h4>\n<\/div>\n<p>AWS\u3067\u4f5c\u6210\u3057\u305f\u3001\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u306e\u30d5\u30a9\u30eb\u30c0\u306b\u79fb\u52d5\u3057\u3001\u4ee5\u4e0b\u30b3\u30de\u30f3\u30c9\u3092\u5165\u529b\u3057Heroku\u306b\u30ed\u30b0\u30a4\u30f3\u3057\u307e\u3059\u3002<br \/>\n\u767b\u9332\u3057\u305fheroku\u30ed\u30b0\u30a4\u30f3\u7528\u306eEmail\u30a2\u30c9\u30ec\u30b9\u3068\u30d1\u30b9\u30ef\u30fc\u30c9\u3092\u5165\u529b\u3057\u307e\u3059\u3002\u3082\u3057\u3001\u767b\u9332\u6642\u306e\u30d1\u30b9\u30ef\u30fc\u30c9\u3067\u30ed\u30b0\u30a4\u30f3\u3067\u304d\u306a\u3044\u3068\u304d\u306f\u3001API Key\u3092\u30d1\u30b9\u30ef\u30fc\u30c9\u306b\u4f7f\u3063\u3066\u4e0b\u3055\u3044\u3002<\/p>\n<div class=\"hcb_wrap\">\n<pre class=\"prism line-numbers lang-bash\" data-lang=\"Bash\"><code>heroku login --interactive<\/code><\/pre>\n<\/div>\n<p>(\u30ed\u30b0\u30a2\u30a6\u30c8\u3057\u305f\u3044\u3068\u304d\u306f\u4ee5\u4e0b\u306e\u30b3\u30de\u30f3\u30c9\u3067\u30ed\u30b0\u30a2\u30a6\u30c8\u3067\u304d\u307e\u3059)<\/p>\n<div class=\"hcb_wrap\">\n<pre class=\"prism line-numbers lang-bash\" data-lang=\"Bash\"><code>heroku logout<\/code><\/pre>\n<\/div>\n<p>\u6b21\u306b\u4ee5\u4e0b\u306e\u30b3\u30de\u30f3\u30c9\u3067\u3001Heroku\u4e0a\u306b\u30a2\u30d7\u30ea\u3092\u4f5c\u6210\u3057\u307e\u3059\u3002\u4e0b\u306e\u30b3\u30de\u30f3\u30c9\u306e&#8221;<strong>app_name<\/strong>&#8220;\u306e\u3068\u3053\u308d\u306b\u306f\u30aa\u30ea\u30b8\u30ca\u30eb\u306e\u30a2\u30d7\u30ea\u540d\u3092\u5165\u529b\u3057\u3066\u304f\u3060\u3055\u3044\u3002\u65e2\u306b\u4ed6\u306e\u8ab0\u304b\u304c\u4f5c\u6210\u3057\u305f\u30a2\u30d7\u30ea\u540d\u3068\u540c\u3058\u3060\u3068\u4f5c\u6210\u3067\u304d\u307e\u305b\u3093\u3002<\/p>\n<div class=\"hcb_wrap\">\n<pre class=\"prism line-numbers lang-bash\" data-lang=\"Bash\"><code>heroku apps:create -a app_name<\/code><\/pre>\n<\/div>\n<p>\u307e\u3060\u3001\u624b\u5143\u306e\u30a2\u30d7\u30ea\u3068Heroku\u4e0a\u306b\u4f5c\u6210\u3057\u305f\u30a2\u30d7\u30ea\u3068\u306e\u7d10\u3065\u3051\u304c\u3067\u304d\u3066\u306a\u3044\u306e\u3067\u3001<br \/>\n\u4ee5\u4e0b\u30b3\u30de\u30f3\u30c9\u3067\u624b\u5143\u306e\u30a2\u30d7\u30ea\u3068Heroku\u4e0a\u306b\u4f5c\u6210\u3057\u305f\u30a2\u30d7\u30ea\u3092\u7d10\u3065\u3051\u3057\u307e\u3059\u3002<\/p>\n<div class=\"hcb_wrap\">\n<pre class=\"prism line-numbers lang-bash\" data-lang=\"Bash\"><code>heroku git:remote -a app_name<\/code><\/pre>\n<\/div>\n<h3><\/h3>\n<h3 class=\"midashi\">\u30c7\u30fc\u30bf\u30d9\u30fc\u30b9\u306e\u4f5c\u6210<\/h3>\n<p>\u6b21\u306bHerokuCLI\u3092\u4f7f\u3063\u3066\u3001\u4f7f\u7528\u3059\u308b\u30c7\u30fc\u30bf\u30d9\u30fc\u30b9\u3092\u8a2d\u5b9a\u3057\u307e\u3059\u3002<br \/>\nHeroku\u3067\u306fpostgresql\u304c\u63a8\u5968\u3055\u308c\u3066\u3044\u3066\u3001\u30c7\u30fc\u30bf\u30d9\u30fc\u30b9\u5bb9\u91cf\u5225\u306b\u6599\u91d1\u30d7\u30e9\u30f3\u304c\u5206\u304b\u308c\u3066\u3044\u307e\u3059\u3002<br \/>\n\u4eca\u56de\u306f\u3001\u30d7\u30e9\u30f3mini\u3092\u9078\u629e\u3057\u307e\u3057\u305f\u3002<br \/>\n\u3082\u3057\u3001Basic\u3092\u9078\u629e\u3057\u305f\u3044\u3068\u304d\u306f\u300cheroku addons:create heroku-postgresql:basic\u300d\u3068\u30bf\u30fc\u30df\u30ca\u30eb\u306b\u6253\u3061\u8fbc\u307f\u307e\u3057\u3087\u3046\u3002<\/p>\n<div class=\"hcb_wrap\">\n<pre class=\"prism line-numbers lang-bash\" data-lang=\"Bash\"><code>heroku addons:create heroku-postgresql:mini<\/code><\/pre>\n<\/div>\n<p>\u5404\u7a2e\u30c7\u30fc\u30bf\u30d9\u30fc\u30b9\u306e\u6599\u91d1\u306f\u4ee5\u4e0b\u306b\u306a\u308a\u307e\u3059\u3002<\/p>\n<table style=\"border-collapse: collapse; width: 78.7685%; height: 184px;\">\n<tbody>\n<tr style=\"height: 46px;\">\n<td style=\"width: 14.6667%; height: 46px; background-color: #e4e4e4;\">\u30d7\u30e9\u30f3<\/td>\n<td style=\"width: 13.0255%; height: 46px; background-color: #e4e4e4;\">\u6599\u91d1<\/td>\n<td style=\"width: 50.1851%; height: 46px; background-color: #e4e4e4;\">\u30b9\u30da\u30c3\u30af<\/td>\n<\/tr>\n<tr style=\"height: 46px;\">\n<td style=\"width: 14.6667%; height: 46px;\">Mini<\/td>\n<td style=\"width: 13.0255%; height: 46px;\">$5\/\u6708<\/td>\n<td style=\"width: 50.1851%; height: 46px;\">1\u4e07\u30ec\u30b3\u30fc\u30c9, 1GB\u307e\u3067<\/td>\n<\/tr>\n<tr style=\"height: 46px;\">\n<td style=\"width: 14.6667%; height: 46px;\">Basic<\/td>\n<td style=\"width: 13.0255%; height: 46px;\">$9\/\u6708<\/td>\n<td style=\"width: 50.1851%; height: 46px;\">1000\u4e07\u30ec\u30b3\u30fc\u30c9, 10GB\u307e\u3067<\/td>\n<\/tr>\n<tr style=\"height: 46px;\">\n<td style=\"width: 14.6667%; height: 46px;\">Standard<\/td>\n<td style=\"width: 13.0255%; height: 46px;\">$50\/\u6708~<\/td>\n<td style=\"width: 50.1851%; height: 46px;\">\u30ec\u30b3\u30fc\u30c9\u5236\u9650\u306a\u3057, 64GB~1TB<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p>\u4f5c\u6210\u5f8c\u306f\u3001\u4ee5\u4e0b\u30b3\u30de\u30f3\u30c9\u3092\u6253\u3063\u3066\u3001<br \/>\n\u8a2d\u5b9a\u3057\u305fDB\u304cHeroku\u4e0a\u306e\u30a2\u30d7\u30ea\u306b\u53cd\u6620\u3055\u308c\u3066\u3044\u308b\u304b\u3092\u78ba\u8a8d\u3002<\/p>\n<div class=\"hcb_wrap\">\n<pre class=\"prism line-numbers lang-bash\" data-lang=\"Bash\"><code>heroku addons<\/code><\/pre>\n<\/div>\n<p>\u4ee5\u4e0b\u306e\u3088\u3046\u306b\u51fa\u529b\u3055\u308c\u3066\u3044\u308c\u3070\u3001\u7121\u4e8b\u6210\u529f\u3067\u3059\u3002<\/p>\n<p><a href=\"https:\/\/trend-appsweb.com\/wp-content\/uploads\/2022\/12\/addon.png\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/trend-appsweb.com\/wp-content\/uploads\/2022\/12\/addon.png\" alt=\"\" width=\"600\" height=\"180\" class=\"alignnone size-full wp-image-916\" style=\"border: solid 3px gray;\" \/><\/a><\/p>\n<h3><\/h3>\n<h3 class=\"midashi\">\u30c7\u30fc\u30bf\u30d9\u30fc\u30b9\u306e\u8a2d\u5b9a\u5024\u3092\u53d6\u5f97\u30fbHeroku\u3078\u306e\u53cd\u6620<\/h3>\n<p>\u4ee5\u4e0b\u306e\u30b3\u30de\u30f3\u30c9\u3092\u30bf\u30fc\u30df\u30ca\u30eb\u3067\u6253\u3063\u3066\u3001\u30c7\u30fc\u30bf\u30d9\u30fc\u30b9\u306e\u60c5\u5831\u3092\u53d6\u5f97\u3057\u3066\u3044\u304d\u307e\u3059\u3002<\/p>\n<div class=\"hcb_wrap\">\n<pre class=\"prism line-numbers lang-bash\" data-lang=\"Bash\"><code>heroku config:get DATABASE_URL<\/code><\/pre>\n<\/div>\n<p>\u2192\u30b3\u30de\u30f3\u30c9\u3092\u6253\u3064\u3068\u3001<br \/>\n&#8220;<span style=\"color: #0000ff;\"><strong>postgres:\/\/<span class=\"token\">&lt;<\/span>\u30e6\u30fc\u30b6\u30fc<span class=\"token\">&gt;<\/span>:<span class=\"token\">&lt;<\/span>\u30d1\u30b9\u30ef\u30fc\u30c9<span class=\"token\">&gt;<\/span>@<span class=\"token\">&lt;<\/span>\u30db\u30b9\u30c8<span class=\"token\">&gt;<\/span>:<span class=\"token\">&lt;<\/span>\u30dd\u30fc\u30c8<span class=\"token\">&gt;<\/span>\/<span class=\"token\">&lt;<\/span>\u30c7\u30fc\u30bf\u30d9\u30fc\u30b9\u540d<\/strong><\/span><span class=\"token\"><span style=\"color: #0000ff;\"><strong>&gt;<\/strong><\/span>&#8220;\u3067\u51fa\u529b\u3055\u308c\u307e\u3059\u3002<br \/>\n\u53d6\u5f97\u3057\u305f\u60c5\u5831\u3092\u4ee5\u4e0b\u306e\u3088\u3046\u306b\u30bf\u30fc\u30df\u30ca\u30eb\u3067\u30b3\u30de\u30f3\u30c9\u3068\u3057\u3066\u5b9f\u884c\u3057\u3001\u305d\u308c\u305e\u308c\u74b0\u5883\u5909\u6570\u3068\u3057\u3066\u8a2d\u5b9a\u3057\u3066\u3044\u304d\u307e\u3059\u3002<\/span><span style=\"color: var(--hcb-color--text,#1f1e1e); font-family: var(--hcb-font-family,'Menlo','Consolas','Hiragino Kaku Gothic ProN','Hiragino Sans','Meiryo',sans-serif); font-size: var(--hcb-font-size,14px); white-space: pre;\"><\/span><\/p>\n<div class=\"hcb_wrap\">\n<pre class=\"prism line-numbers lang-bash\" data-lang=\"Bash\"><code>heroku config:set DB_CONNECTION=pgsql -a &lt;\u30a2\u30d7\u30ea\u540d&gt;\r\nheroku config:set DB_DATABASE=&lt;\u30c7\u30fc\u30bf\u30d9\u30fc\u30b9\u540d&gt;\r\nheroku config:set DB_HOST=&lt;\u30db\u30b9\u30c8&gt;\r\nheroku config:set DB_PASSWORD=&lt;\u30d1\u30b9\u30ef\u30fc\u30c9&gt;\r\nheroku config:set DB_PORT=&lt;\u30dd\u30fc\u30c8&gt;\r\nheroku config:set DB_USERNAME=&lt;\u30e6\u30fc\u30b6\u30fc&gt;<\/code><\/pre>\n<\/div>\n<p>\u4e0b\u306b\u3042\u306a\u305f\u306e\u30a2\u30d7\u30ea\u540d\u3068\u51fa\u529b\u3055\u308c\u305f\u60c5\u5831\u3092\u30b3\u30d4\u30da\u3057\u3066\u3001<br \/>\n\u53d6\u5f97\u3092\u62bc\u3059\u3068\u74b0\u5883\u5909\u6570\u3092\u8a2d\u5b9a\u3059\u308b\u305f\u3081\u306e\u30b3\u30de\u30f3\u30c9\u304c\u8868\u793a\u3055\u308c\u307e\u3059\u3002<\/p>\n<div style=\"display: flex;\"><input id=\"app_name\" style=\"width: 30%; margin-right: 5px;\" placeholder=\"app_name(\u30a2\u30d7\u30ea\u540d)\" type=\"text\" \/><br \/>\n<input id=\"postgres\" style=\"width: 40%; margin-right: 5px;\" placeholder=\"postgres:\/\/....\" type=\"text\" \/><br \/>\n<button onclick=\"postgres_env()\">\u53d6\u5f97<br \/>\n<\/button><\/div>\n<p style=\"margin-top: 20px; margin-bottom: 0;\"><strong><span style=\"color: #800080;\">\u25a0\u8a2d\u5b9a\u2460(\u4f7f\u7528\u3059\u308bDB)<\/span><\/strong><\/p>\n<div style=\"display: flex;\" class=\"copy_content\">\n<p id=\"setting1\">heroku config:set DB_CONNECTION=pgsql<\/p>\n<p><button id=\"copy_button1\">\u30b3\u30d4\u30fc<\/button><\/p>\n<\/div>\n<p style=\"margin-top: 20px; margin-bottom: 0;\"><span style=\"color: #800080;\"><strong>\u25a0\u8a2d\u5b9a\u2461(DB\u8a2d\u5b9a)<\/strong><\/span><\/p>\n<div style=\"display: flex;\" class=\"copy_content\">\n<p id=\"setting2\">heroku config:set DB_DATABASE=<\/p>\n<p><button id=\"copy_button2\">\u30b3\u30d4\u30fc<\/button><\/p>\n<\/div>\n<p style=\"margin-top: 20px; margin-bottom: 0;\"><span style=\"color: #800080;\"><strong>\u25a0\u8a2d\u5b9a\u2462(HOST\u8a2d\u5b9a)<\/strong><\/span><\/p>\n<div style=\"display: flex;\" class=\"copy_content\">\n<p id=\"setting3\">heroku config:set DB_HOST=<\/p>\n<p><button id=\"copy_button3\">\u30b3\u30d4\u30fc<\/button><\/p>\n<\/div>\n<p style=\"margin-top: 20px; margin-bottom: 0;\"><span style=\"color: #800080;\"><strong>\u25a0\u8a2d\u5b9a\u2463(PASSWORD\u8a2d\u5b9a)<\/strong><\/span><\/p>\n<div style=\"display: flex;\" class=\"copy_content\">\n<p id=\"setting4\">heroku config:set DB_PASSWORD=<\/p>\n<p><button id=\"copy_button4\">\u30b3\u30d4\u30fc<\/button><\/p>\n<\/div>\n<p style=\"margin-top: 20px; margin-bottom: 0;\"><strong><span style=\"color: #800080;\">\u25a0\u8a2d\u5b9a\u2464(PORT\u8a2d\u5b9a)<\/span><\/strong><\/p>\n<div style=\"display: flex;\" class=\"copy_content\">\n<p id=\"setting5\">heroku config:set DB_PORT=<\/p>\n<p><button id=\"copy_button5\">\u30b3\u30d4\u30fc<\/button><\/p>\n<\/div>\n<p style=\"margin-top: 20px; margin-bottom: 0;\"><span style=\"color: #800080;\"><strong>\u25a0\u8a2d\u5b9a\u2465(USERNAME\u8a2d\u5b9a)<\/strong><\/span><\/p>\n<div style=\"display: flex;\" class=\"copy_content\">\n<p style=\"display: flex;\" id=\"setting6\">heroku config:set DB_USERNAME=<\/p>\n<p><button id=\"copy_button6\">\u30b3\u30d4\u30fc<\/button><\/p>\n<\/div>\n<p>&nbsp;<\/p>\n<h3 class=\"midashi\">APP_KEY\u306e\u53d6\u5f97\u30fbHeroku\u3078\u306e\u53cd\u6620<\/h3>\n<p>Laravel\u3092Heroku\u3078\u30ea\u30ea\u30fc\u30b9\u3059\u308b\u305f\u3081\u306b\u306f\u3001APP_KEY\u3068\u3044\u3046\u74b0\u5883\u5909\u6570\u3092\u8a2d\u5b9a\u3059\u308b\u5fc5\u8981\u304c\u3042\u308a\u307e\u3059\u3002<br \/>\nAPP_KEY\u306f\u3001Laravel\u3067\u30a2\u30d7\u30ea\u306e\u3072\u306a\u578b\u3092\u4f5c\u6210\u3059\u308b\u6642\u306b\u81ea\u52d5\u4f5c\u6210\u3055\u308c\u307e\u3059\u3002\u305d\u306e\u305f\u3081\u3001\u958b\u767a\u74b0\u5883\u3067\u306f\u7279\u306b\u610f\u8b58\u3057\u306a\u304f\u3066\u3082\u30a2\u30d7\u30ea\u306e\u958b\u767a\u306b\u5165\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002<br \/>\n\u3057\u304b\u3057\u3001Heroku\u306b\u30ea\u30ea\u30fc\u30b9\u3059\u308b\u5834\u5408\u3001APP_KEY\u3092\u4f5c\u6210\u3059\u308b\u5fc5\u8981\u304c\u3042\u308a\u307e\u3059\u3002<br \/>\n\u4ee5\u4e0b\u306e\u30b3\u30de\u30f3\u30c9\u3092\u30bf\u30fc\u30df\u30ca\u30eb\u306b\u6253\u3061\u3001APP_KEY\u3092\u53d6\u5f97\u3057\u307e\u3059\u3002<\/p>\n<div class=\"hcb_wrap\">\n<pre class=\"prism line-numbers lang-bash\" data-lang=\"Bash\"><code>php artisan key:generate --show<\/code><\/pre>\n<\/div>\n<p><a href=\"https:\/\/trend-appsweb.com\/wp-content\/uploads\/2022\/12\/APP_KEY.png\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/trend-appsweb.com\/wp-content\/uploads\/2022\/12\/APP_KEY.png\" alt=\"\" width=\"854\" height=\"100\" class=\"alignnone size-full wp-image-920\" style=\"border: solid 3px gray;\" srcset=\"https:\/\/trend-appsweb.com\/wp-content\/uploads\/2022\/12\/APP_KEY.png 854w, https:\/\/trend-appsweb.com\/wp-content\/uploads\/2022\/12\/APP_KEY-300x35.png 300w, https:\/\/trend-appsweb.com\/wp-content\/uploads\/2022\/12\/APP_KEY-768x90.png 768w\" sizes=\"(max-width: 854px) 100vw, 854px\" \/><\/a><\/p>\n<p>\u53d6\u5f97\u3057\u305f\u30ad\u30fc(base64:&#8230;\u304b\u3089\u59cb\u307e\u308b\u30ad\u30fc)\u3092\u30b3\u30d4\u30fc\u3057\u3001Heroku\u306b\u30bb\u30c3\u30c8\u3057\u307e\u3059\u3002<br \/>\n\u4e0b\u306e&#8221;<code>base64:....<\/code>&#8220;\u306e\u7b87\u6240\u3092\u30b3\u30d4\u30fc\u3057\u305f\u5185\u5bb9\u306b\u5909\u3048\u3066\u304f\u3060\u3055\u3044\u3002<\/p>\n<div class=\"hcb_wrap\">\n<pre class=\"prism line-numbers lang-bash\" data-lang=\"Bash\"><code>heroku config:set APP_KEY=base64:....<\/code><\/pre>\n<\/div>\n<h3><\/h3>\n<p>&nbsp;<\/p>\n<h3 class=\"midashi\">Procfile\u306e\u8ffd\u52a0<\/h3>\n<p>Laravel\u3067\u4f5c\u6210\u3057\u305fWeb\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u3092Heroku\u3067\u52d5\u304b\u3059\u305f\u3081\u306b\u306f\u3001<br \/>\nProcfile\u3068\u547c\u3070\u308c\u308b\u30d5\u30a1\u30a4\u30eb\u3092\u7528\u610f\u3059\u308b\u5fc5\u8981\u304c\u3042\u308a\u307e\u3059\u3002<\/p>\n<p>Procfile\u3068\u306f\u3001Heroku\u3067\u52d5\u304b\u3059\u30a2\u30d7\u30ea(\u30b5\u30fc\u30d0\u30fc)\u304c\u8d77\u52d5\u3057\u3066\u3044\u308b\u3068\u304d\u306b\u3001\u5b9f\u884c\u3059\u308b\u30b3\u30de\u30f3\u30c9\u3092\u6307\u5b9a\u3059\u308b\u3053\u3068\u304c\u3067\u304d\u308b\u3082\u306e\u3067\u3059\u3002<br \/>\n\u3053\u308c\u3092\u4f7f\u3046\u3053\u3068\u3067\u3001Heroku\u3067\u7528\u610f\u3057\u305f\u30a2\u30d7\u30ea(\u30b5\u30fc\u30d0\u30fc)\u4e0a\u3067\u3001\u8907\u6570\u306e\u30b3\u30de\u30f3\u30c9\u3092\u540c\u6642\u306b\u5b9f\u884c\u3059\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002<\/p>\n<p>Laravel\u3067\u4f5c\u6210\u3057\u305fWeb\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u3092\u8d77\u52d5\u3059\u308b\u30b3\u30de\u30f3\u30c9\u3092\u8ffd\u52a0\u3057\u307e\u3059\u3002<br \/>\n\u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u306e\u76f4\u4e0b\u306b\u3001Procfile\u3068\u3044\u3046\u540d\u524d\u3067\u30d5\u30a1\u30a4\u30eb\u3092\u4f5c\u6210\u3057\u3001<br \/>\n\u4ee5\u4e0b\u306e\u5185\u5bb9(<code>web: vendor\/bin\/heroku-php-apache2 public\/<\/code>)\u3092\u66f8\u304d\u8fbc\u307f\u307e\u3059\u3002<\/p>\n<div class=\"hcb_wrap\">\n<pre class=\"prism line-numbers lang-bash\" data-lang=\"Bash\"><code>echo \"web: vendor\/bin\/heroku-php-apache2 public\/\" &gt; Procfile<\/code><\/pre>\n<\/div>\n<p>Laravel\u3067\u4f5c\u6210\u3057\u305f\u30a2\u30d7\u30ea\u3092Heroku\u3067\u8d77\u52d5\u3067\u304d\u308b\u3088\u3046\u306b\u3001web\u3068\u3044\u3046\u30d7\u30ed\u30bb\u30b9\u540d\u3067Apache\u3068\u3044\u3046\u30b5\u30fc\u30d0\u30fc\u30bd\u30d5\u30c8\u30a6\u30a7\u30a2\u3092\u8d77\u52d5\u3057\u3066\u3044\u307e\u3059\u3002<br \/>\n\u5f15\u6570\u306b\u6e21\u3057\u3066\u3044\u308bpublic\/\u306f\u3001Apache\u3067\u5b9f\u884c\u3059\u308bindex.php\u304c\u3069\u3053\u306b\u914d\u7f6e\u3055\u308c\u3066\u3044\u308b\u304b\u3092\u6307\u5b9a\u3057\u3066\u3044\u307e\u3059\u3002<br \/>\n\u3053\u308c\u3067Heroku\u306e\u30a2\u30d7\u30ea(\u30b5\u30fc\u30d0\u30fc)\u4e0a\u3067\u3001\u4f5c\u6210\u3057\u305fWeb\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u304c\u52d5\u304f\u3088\u3046\u306b\u306a\u308a\u307e\u3059\u3002<\/p>\n<h3 class=\"midashi\">\u30a2\u30bb\u30c3\u30c8\u306eHTTPS\u5316<\/h3>\n<p>\u521d\u671f\u8a2d\u5b9a\u306e\u307e\u307e\u3060\u3068\u3001Laravel\u3067\u4f7f\u7528\u3057\u3066\u3044\u308baseet\u95a2\u6570\u306fSSL\u3092\u4f7f\u7528\u3057\u305fhttps\u63a5\u7d9a\u3067\u306f\u30a2\u30bb\u30c3\u30c8\u3092\u8aad\u307f\u8fbc\u3081\u307e\u305b\u3093\u3002\u57fa\u672c\u7684\u306b\u306f\u3001http\u63a5\u7d9a\u3067\u753b\u50cf\u3084CSS\u3092\u8aad\u307f\u8fbc\u307f\u307e\u3059\u3002<\/p>\n<p>\u3053\u306e\u5bfe\u5fdc\u3068\u3057\u3066\u3001asset(&#8216;storage\/profile-photos\/image.png&#8217;, <strong><span style=\"color: #3366ff;\">true<\/span><\/strong>)\u306e\u3088\u3046\u306b\u7b2c2\u5f15\u6570\u306btrue\u3092\u6e21\u3059\u3068https\u3067\u3082\u8aad\u307f\u8fbc\u3081\u308b\u3088\u3046\u306b\u306a\u308b\u304c\u3001\u3053\u308c\u3092\u3084\u3063\u3066\u3057\u307e\u3046\u3068\u4eca\u5ea6\u306f\u958b\u767a\u74b0\u5883\u3067asset\u95a2\u6570\u306e\u8aad\u8fbc\u304c\u51fa\u6765\u306a\u304f\u306a\u3063\u3066\u3057\u307e\u3044\u307e\u3059\u3002<\/p>\n<p>\u306a\u306e\u3067\u3001\u52d5\u7684\u306bhttps\u63a5\u7d9a\u3068http\u63a5\u7d9a\u3092\u52d5\u7684\u306b\u5207\u308a\u66ff\u3048\u3089\u308c\u308b\u3088\u3046\u306b\u3001<em>AppServiceProvider.php<\/em>\u306b\u4ee5\u4e0b\u306e\u3088\u3046\u306a\u8a18\u8ff0\u3092\u8ffd\u52a0\u3057\u307e\u3059\u3002<\/p>\n<p class=\"file_name\"><em style=\"font-size: 16px;\">app\/Providers\/AppServiceProvider.php<\/em><\/p>\n<div class=\"hcb_wrap\" style=\"margin: 0;\">\n<pre class=\"prism line-numbers lang-php\" data-lang=\"PHP\"><code>use Illuminate\\Support\\Facades\\App;\r\nuse Illuminate\\Support\\Facades\\URL;\r\n\r\n\r\npublic function boot()\r\n{\r\n    if(App::environment(['production'])) {\r\n        URL::forceScheme('https');\r\n    }\r\n}<\/code><\/pre>\n<\/div>\n<p>&nbsp;<\/p>\n<h3 class=\"midashi\">Heroku\u306b\u30d3\u30eb\u30c9\u30d1\u30c3\u30af\u3092\u8ffd\u52a0<\/h3>\n<p>\u6b21\u306bHeroku\u306b\u3001Nodejs\u3068php\u30d3\u30eb\u30c9\u30d1\u30c3\u30af\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3057\u307e\u3059\u3002<\/p>\n<div class=\"hcb_wrap\">\n<pre class=\"prism line-numbers lang-bash\" data-lang=\"Bash\"><code>heroku buildpacks:set heroku\/php\r\nheroku buildpacks:add --index 1 heroku\/nodejs<\/code><\/pre>\n<\/div>\n<p><span>Laravel9.x\u3067\u306f\u3001Laravel Vite\u3068\u3044\u3046\u30d3\u30eb\u30c9\u30c4\u30fc\u30eb\u3092\u4f7f\u3063\u3066\u3044\u3066\u3001\u672c\u756a\u74b0\u5883\u3067\u306e\u30a2\u30bb\u30c3\u30c8\u3092\u69cb\u7bc9\u3059\u308b\u305f\u3081\u306b\u3001<br \/>\n&#8220;<em>npm install<\/em>&#8220;\u3084&#8221;<em>npm build<\/em>&#8220;\u3092\u6253\u305f\u306a\u3051\u308c\u3070\u3044\u3051\u306a\u3044\u306e\u3067\u3046\u304c&#8221;<em>heroku\/nodejs<\/em>&#8220;\u3092\u4f7f\u3046\u3053\u3068\u3067(\u4e0a\u306e2\u500b\u76ee\u306e\u30b3\u30de\u30f3\u30c9)\u3001<br \/>\n\u3053\u308c\u3089\u306e\u30b3\u30de\u30f3\u30c9\u3092\u7701\u7565\u3059\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002<\/span><\/p>\n<p>\u4eca\u56de\u4f7f\u7528\u3057\u305f\u74b0\u5883AWS cloud9+heroku+Jetstreem(\u30ed\u30b0\u30a4\u30f3\u6a5f\u80fd)\u3067\u306f\u3001\u3053\u308c\u3067\u30c7\u30d7\u30ed\u30a4\u307e\u3067\u306f\u554f\u984c\u306a\u304f\u3067\u304d\u307e\u3057\u305f\u304c\u3001<br \/>\n\u3082\u3057\u30c7\u30d7\u30ed\u30a4\u5f8c\u306e\u30ed\u30b0\u30a4\u30f3\u753b\u9762\u3001\u65b0\u898f\u767b\u9332\u7b49\u3067\u201d<em>Vite manifest not found at&#8230;<\/em>\u201d\u306b\u306a\u3063\u3066\u3057\u307e\u3063\u305f\u5834\u5408\u306f\u3001<br \/>\n<span>&#8220;<em>npm install<\/em>&#8220;\u3084&#8221;<em>npm build<\/em>&#8220;\u306e\u30b3\u30de\u30f3\u30c9\u3092<\/span>\u8a66\u3057\u3066\u307f\u3066\u304f\u3060\u3055\u3044\u3002<\/p>\n<h3 class=\"midashi\">Heroku\u306e\u74b0\u5883\u8a2d\u5b9a\u3092\u672c\u756a\u74b0\u5883\u306b\u79fb\u884c<\/h3>\n<p><span>\u4ee5\u4e0b\u306e\u30b3\u30de\u30f3\u30c9\u3067\u3001heroku\u306b\u30c7\u30d7\u30ed\u30a4\u3059\u308b\u30a2\u30d7\u30ea\u3092\u672c\u756a\u74b0\u5883(<code>production<\/code>)\u306b\u79fb\u884c\u3055\u305b\u307e\u3059\u3002<br \/>\n<\/span><\/p>\n<div class=\"hcb_wrap\">\n<pre class=\"prism line-numbers lang-bash\" data-lang=\"Bash\"><code>heroku config:set APP_ENV=production<\/code><\/pre>\n<\/div>\n<p>&nbsp;<\/p>\n<h3 class=\"midashi\">Heroku\u306b\u30c7\u30d7\u30ed\u30a4<\/h3>\n<p>\u4ee5\u4e0b\u306e\u30b3\u30de\u30f3\u30c9\u3067\u3001\u3053\u3053\u307e\u3067\u306e\u5909\u66f4\u3092\u30b3\u30df\u30c3\u30c8\u3057\u3066\u3001<br \/>\n\u624b\u5143\u306e\u30bd\u30fc\u30b9\u30b3\u30fc\u30c9\u3092Heroku\u30a2\u30d7\u30ea\u5185\u306b\u3042\u308b\u30ea\u30e2\u30fc\u30c8\u30ea\u30dd\u30b8\u30c8\u30ea\u306b\u30d7\u30c3\u30b7\u30e5\u3059\u308b\u3002<\/p>\n<p>\u6050\u3089\u304f\u3001\u7279\u306b\u8a2d\u5b9a\u3057\u3066\u3044\u306a\u3051\u308c\u3070\u30e1\u30a4\u30f3\u30d6\u30e9\u30f3\u30c1\u540d\u304c&#8221;<em>master<\/em>&#8220;\u306b\u306a\u3063\u3066\u3044\u308b\u306f\u305a\u306a\u306e\u3067\u3001<br \/>\nheroku\u306b\u30d7\u30c3\u30b7\u30e5\u3059\u308b\u305f\u3081\u306b\u3001&#8221;<em>git branch -M main<\/em>&#8220;\u3067\u30d6\u30e9\u30f3\u30c1\u540d\u3092&#8221;<em>main<\/em>&#8220;\u306b\u5909\u66f4\u3057\u3066\u30d7\u30c3\u30b7\u30e5\u3057\u307e\u3059\u3002<\/p>\n<div class=\"hcb_wrap\">\n<pre class=\"prism line-numbers lang-bash\" data-lang=\"Bash\"><code>git add .\r\ngit commit -m \"prepare for heroku deploy\"\r\ngit branch -M main\r\ngit push heroku main<\/code><\/pre>\n<\/div>\n<p><span>Heroku CLI\u3067\u30de\u30a4\u30b0\u30ec\u30fc\u30b7\u30e7\u30f3\u3092\u5b9f\u884c<br \/>\n<\/span><\/p>\n<div class=\"hcb_wrap\">\n<pre class=\"prism line-numbers lang-bash\" data-lang=\"Bash\"><code><span>heroku run php artisan migrate<\/span><\/code><\/pre>\n<\/div>\n<p>\u30de\u30a4\u30b0\u30ec\u30fc\u30b7\u30e7\u30f3\u3092\u5b9f\u884c\u3059\u308b\u304b\u3068\u805e\u304b\u308c\u308b\u306e\u3067\u3001&#8221;yes&#8221;\u3068\u5165\u529b\u3057\u3066\u30de\u30a4\u30b0\u30ec\u30fc\u30b7\u30e7\u30f3\u3092\u5b9f\u884c<br \/>\n<a href=\"https:\/\/trend-appsweb.com\/wp-content\/uploads\/2022\/12\/migration.png\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/trend-appsweb.com\/wp-content\/uploads\/2022\/12\/migration.png\" alt=\"\" width=\"727\" height=\"185\" class=\"alignnone size-full wp-image-965\" style=\"border: solid 3px gray;\" srcset=\"https:\/\/trend-appsweb.com\/wp-content\/uploads\/2022\/12\/migration.png 727w, https:\/\/trend-appsweb.com\/wp-content\/uploads\/2022\/12\/migration-300x76.png 300w\" sizes=\"(max-width: 727px) 100vw, 727px\" \/><\/a><br \/>\n\u4ee5\u4e0a\u304cHeroku\u30c7\u30d7\u30ed\u30a4\u307e\u3067\u306e\u624b\u9806\u3067\u3059\u3002<\/p>\n<h3><\/h3>\n<p>&nbsp;<\/p>\n<h3 class=\"midashi\">\u8ffd\u8a18<\/h3>\n<p>\u30c7\u30fc\u30bf\u30d9\u30fc\u30b9\u306e\u8a2d\u5b9a\u5024\u3092\u30b3\u30de\u30f3\u30c9\u3067\u5165\u308c\u307e\u3057\u305f\u304c\u3001Heroku\u5074\u304b\u3089UI\u3067\u306e\u64cd\u4f5c\u3082\u53ef\u80fd\u3067\u3059\u3002<br \/>\n\u521d\u56de\u306e\u30c7\u30d7\u30ed\u30a4\u6642\u306b\u306f\u3001\u30a8\u30e9\u30fc\u304c\u3067\u305f\u3068\u304d\u306b\u539f\u56e0\u3092\u7279\u5b9a\u3059\u308b\u305f\u3081\u306b\u3001<span style=\"color: #0000ff;\"><strong>APP_DEBUG<\/strong><\/span>\u3092<span style=\"color: #0000ff;\"><strong>true<\/strong><\/span>\u306b\u3057\u3066\u304a\u304f\u3053\u3068\u3092\u5f37\u304f\u304a\u52e7\u3081\u3057\u307e\u3059\u3002<\/p>\n<p><strong>\u2460Heroku\u306b\u30ed\u30b0\u30a4\u30f3\u3057\u3066\u3001\u30c0\u30c3\u30b7\u30e5\u30dc\u30fc\u30c9\u304b\u3089\u5bfe\u8c61\u30a2\u30d7\u30ea\u3092\u9078\u629e<\/strong><br \/>\n<a href=\"https:\/\/trend-appsweb.com\/wp-content\/uploads\/2022\/12\/Heroku_UI1-1.png\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/trend-appsweb.com\/wp-content\/uploads\/2022\/12\/Heroku_UI1-1-1024x299.png\" alt=\"\" width=\"1024\" height=\"299\" class=\"alignnone size-large wp-image-982\" style=\"border: solid 3px gray;\" srcset=\"https:\/\/trend-appsweb.com\/wp-content\/uploads\/2022\/12\/Heroku_UI1-1-1024x299.png 1024w, https:\/\/trend-appsweb.com\/wp-content\/uploads\/2022\/12\/Heroku_UI1-1-300x88.png 300w, https:\/\/trend-appsweb.com\/wp-content\/uploads\/2022\/12\/Heroku_UI1-1-768x224.png 768w, https:\/\/trend-appsweb.com\/wp-content\/uploads\/2022\/12\/Heroku_UI1-1-1536x448.png 1536w, https:\/\/trend-appsweb.com\/wp-content\/uploads\/2022\/12\/Heroku_UI1-1.png 1912w\" sizes=\"(max-width: 1024px) 100vw, 1024px\" \/><\/a><\/p>\n<p>&nbsp;<\/p>\n<p><strong>\u2461setting\uff1d\uff1eReveal Config Vars\u306e\u9806\u306b\u30af\u30ea\u30c3\u30af<br \/>\n<a href=\"https:\/\/trend-appsweb.com\/wp-content\/uploads\/2022\/12\/Heroku_UI2.png\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/trend-appsweb.com\/wp-content\/uploads\/2022\/12\/Heroku_UI2-1024x482.png\" alt=\"\" width=\"1024\" height=\"482\" class=\"alignnone size-large wp-image-983\" style=\"border: solid 3px gray;\" srcset=\"https:\/\/trend-appsweb.com\/wp-content\/uploads\/2022\/12\/Heroku_UI2-1024x482.png 1024w, https:\/\/trend-appsweb.com\/wp-content\/uploads\/2022\/12\/Heroku_UI2-300x141.png 300w, https:\/\/trend-appsweb.com\/wp-content\/uploads\/2022\/12\/Heroku_UI2-768x362.png 768w, https:\/\/trend-appsweb.com\/wp-content\/uploads\/2022\/12\/Heroku_UI2-1536x723.png 1536w, https:\/\/trend-appsweb.com\/wp-content\/uploads\/2022\/12\/Heroku_UI2.png 1886w\" sizes=\"(max-width: 1024px) 100vw, 1024px\" \/><\/a><br \/>\n<\/strong><br \/>\n<strong>\u2462\u5404\u7a2e\u8a2d\u5b9a\u3092\u624b\u52d5\u3067\u5165\u529b<\/strong><\/p>\n<p><a href=\"https:\/\/trend-appsweb.com\/wp-content\/uploads\/2022\/12\/Heroku_UI3.png\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/trend-appsweb.com\/wp-content\/uploads\/2022\/12\/Heroku_UI3-1024x504.png\" alt=\"\" width=\"1024\" height=\"504\" class=\"alignnone size-large wp-image-985\" style=\"border: solid 3px gray;\" srcset=\"https:\/\/trend-appsweb.com\/wp-content\/uploads\/2022\/12\/Heroku_UI3-1024x504.png 1024w, https:\/\/trend-appsweb.com\/wp-content\/uploads\/2022\/12\/Heroku_UI3-300x148.png 300w, https:\/\/trend-appsweb.com\/wp-content\/uploads\/2022\/12\/Heroku_UI3-768x378.png 768w, https:\/\/trend-appsweb.com\/wp-content\/uploads\/2022\/12\/Heroku_UI3-1536x756.png 1536w, https:\/\/trend-appsweb.com\/wp-content\/uploads\/2022\/12\/Heroku_UI3.png 1914w\" sizes=\"(max-width: 1024px) 100vw, 1024px\" \/><\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u30c6\u30fc\u30de \u307e\u3044\u3069\uff01\uff01naoto555\u3067\u3059\u3002\u4eca\u56de\u306f\u3001Laravel\u3067\u4f5c\u6210\u3057\u305f\u30a2\u30d7\u30ea\u3092Heroku\u306b\u30a2\u30c3\u30d7\u3057\u3066\u3044\u3053\u3046\u3068\u601d\u3044\u307e\u3059\u3002 2022\/11\/28\u304b\u3089\u6709\u6599\u306b\u306a\u308a\u307e\u3057\u305f\u306d\u3002\u6599\u91d1\u30d7\u30e9\u30f3\u306b\u95a2\u3057\u3066\u306e\u8aac\u660e\u3082\u8efd\u304f\u8e0f\u307e\u3048\u3064\u3064\u3001Herok [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"site-sidebar-layout":"default","site-content-layout":"default","ast-site-content-layout":"","site-content-style":"default","site-sidebar-style":"default","ast-global-header-display":"","ast-banner-title-visibility":"","ast-main-header-display":"","ast-hfb-above-header-display":"","ast-hfb-below-header-display":"","ast-hfb-mobile-header-display":"","site-post-title":"","ast-breadcrumbs-content":"","ast-featured-img":"","footer-sml-layout":"","theme-transparent-header-meta":"default","adv-header-id-meta":"","stick-header-meta":"","header-above-stick-meta":"","header-main-stick-meta":"","header-below-stick-meta":"","astra-migrate-meta-layouts":"default","ast-page-background-enabled":"default","ast-page-background-meta":{"desktop":{"background-color":"var(--ast-global-color-4)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-gradient":""},"tablet":{"background-color":"","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-gradient":""},"mobile":{"background-color":"","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-gradient":""}},"ast-content-background-meta":{"desktop":{"background-color":"var(--ast-global-color-5)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-gradient":""},"tablet":{"background-color":"var(--ast-global-color-5)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-gradient":""},"mobile":{"background-color":"var(--ast-global-color-5)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-gradient":""}},"_jetpack_memberships_contains_paid_content":false,"footnotes":""},"categories":[13],"tags":[],"class_list":["post-731","post","type-post","status-publish","format-standard","hentry","category-laravelphp"],"jetpack_sharing_enabled":true,"jetpack_featured_media_url":"","_links":{"self":[{"href":"https:\/\/trend-appsweb.com\/myportfolio\/index.php?rest_route=\/wp\/v2\/posts\/731","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/trend-appsweb.com\/myportfolio\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/trend-appsweb.com\/myportfolio\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/trend-appsweb.com\/myportfolio\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/trend-appsweb.com\/myportfolio\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=731"}],"version-history":[{"count":245,"href":"https:\/\/trend-appsweb.com\/myportfolio\/index.php?rest_route=\/wp\/v2\/posts\/731\/revisions"}],"predecessor-version":[{"id":2179,"href":"https:\/\/trend-appsweb.com\/myportfolio\/index.php?rest_route=\/wp\/v2\/posts\/731\/revisions\/2179"}],"wp:attachment":[{"href":"https:\/\/trend-appsweb.com\/myportfolio\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=731"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/trend-appsweb.com\/myportfolio\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=731"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/trend-appsweb.com\/myportfolio\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=731"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}