【環境】
vue2.5.17
vue-router3.1.3
vue-template-compiler2.6.10
Laravel5.8.35
【やりたいこと】
laravelで作成したサービスをherokuにデプロイしたい。
【状況】
こちらのサイトを参考にデプロイをしようとしています。
https://www.hypertextcandy.com/laravel-tutorial-deploy-to-heroku
heroku run "php artisan migrate"
をすると
In Connection.php line 664: SQLSTATE[HY000] [2002] No such file or directory (SQL: select * from information _schema.tables where table_schema = heroku_21ff36d1bf1a314 and table_name = migr ations and table_type = 'BASE TABLE') In Connector.php line 70: SQLSTATE[HY000] [2002] No such file or directory
のエラーが出ています。
heroku logs -t
をすると
2020-02-07T08:47:35.086144+00:00 heroku[web.1]: Restarting 2020-02-07T08:47:35.090250+00:00 heroku[web.1]: State changed from up to starting 2020-02-07T08:47:35.863187+00:00 app[web.1]: Stopping php-fpm... 2020-02-07T08:47:35.863229+00:00 app[web.1]: Stopping httpd... 2020-02-07T08:47:35.863232+00:00 app[web.1]: SIGTERM received, attempting graceful shutdown... 2020-02-07T08:47:35.863234+00:00 app[web.1]: /app/vendor/bin/heroku-php-apache2: line 530: warning: run_pending_traps: bad value in trap_list[10]: (nil) 2020-02-07T08:47:35.863236+00:00 app[web.1]: /app/vendor/bin/heroku-php-apache2: line 530: warning: run_pending_traps: signal handler is SIG_DFL, resending 10 (SIGUSR1) to myself 2020-02-07T08:47:35.867119+00:00 app[web.1]: Shutdown complete. 2020-02-07T08:47:35.852822+00:00 heroku[web.1]: Stopping all processes with SIGTERM 2020-02-07T08:47:35.904771+00:00 heroku[web.1]: Process exited with status 143 2020-02-07T08:47:36.940945+00:00 heroku[web.1]: Starting process with command `heroku-php-apache2` 2020-02-07T08:47:39.168758+00:00 app[web.1]: Optimizing defaults for 1X dyno... 2020-02-07T08:47:39.198134+00:00 app[web.1]: 4 processes at 128MB memory limit. 2020-02-07T08:47:39.206438+00:00 app[web.1]: Starting php-fpm... 2020-02-07T08:47:39.379460+00:00 app[web.1]: Starting httpd... 2020-02-07T08:47:39.674206+00:00 heroku[web.1]: State changed from starting to up 2020-02-07T08:52:22.895535+00:00 heroku[router]: at=info method=GET path="/" host=dondonkun.herokuapp.com request_id=191ebcf7-ba80-46ba-94c0-df9e7370ae79 fwd="106.72.41.224" dyno=web.1 connect=0ms service=1ms status=403 bytes=363 protocol=https 2020-02-07T08:52:22.894336+00:00 app[web.1]: [Fri Feb 07 17:52:22.893513 2020] [autoindex:error] [pid 140:tid 140136705939200] [client 10.31.74.134:18366] AH01276: Cannot serve directory /app/: No matching DirectoryIndex (index.php,index.html,index.htm) found, and server-generated directory index forbidden by Options directive, referer: https://dashboard.heroku.com/ 2020-02-07T08:52:22.894748+00:00 app[web.1]: 10.31.74.134 - - [07/Feb/2020:17:52:22 +0900] "GET / HTTP/1.1" 403 199 "https://dashboard.heroku.com/" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_12_6) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/80.0.3987.87 Safari/537.36 2020-02-07T08:52:55.231685+00:00 heroku[web.1]: Restarting 2020-02-07T08:52:55.246153+00:00 heroku[web.1]: State changed from up to starting 2020-02-07T08:52:54.825449+00:00 app[api]: Release v27 created by user kurare.i22@gmail.com 2020-02-07T08:52:54.825449+00:00 app[api]: Set DB_SOCKET config vars by user kurare.i22@gmail.com 2020-02-07T08:52:56.142642+00:00 heroku[web.1]: Stopping all processes with SIGTERM 2020-02-07T08:52:56.244699+00:00 heroku[web.1]: Process exited with status 143 2020-02-07T08:52:56.157006+00:00 app[web.1]: Stopping httpd... 2020-02-07T08:52:56.157559+00:00 app[web.1]: Stopping php-fpm... 2020-02-07T08:52:56.157714+00:00 app[web.1]: SIGTERM received, attempting graceful shutdown... 2020-02-07T08:52:56.159539+00:00 app[web.1]: /app/vendor/bin/heroku-php-apache2: line 530: warning: run_pending_traps: bad value in trap_list[10]: (nil) 2020-02-07T08:52:56.159945+00:00 app[web.1]: /app/vendor/bin/heroku-php-apache2: line 530: warning: run_pending_traps: signal handler is SIG_DFL, resending 10 (SIGUSR1) to myself 2020-02-07T08:52:56.184991+00:00 app[web.1]: Shutdown complete. 2020-02-07T08:52:57.749824+00:00 heroku[web.1]: Starting process with command `heroku-php-apache2` 2020-02-07T08:53:01.392151+00:00 app[web.1]: Optimizing defaults for 1X dyno... 2020-02-07T08:53:01.437532+00:00 app[web.1]: 4 processes at 128MB memory limit. 2020-02-07T08:53:01.449319+00:00 app[web.1]: Starting php-fpm... 2020-02-07T08:53:01.656612+00:00 app[web.1]: Starting httpd... 2020-02-07T08:53:02.376328+00:00 heroku[web.1]: State changed from starting to up 2020-02-07T08:53:16.026975+00:00 heroku[web.1]: Restarting 2020-02-07T08:53:16.031085+00:00 heroku[web.1]: State changed from up to starting 2020-02-07T08:53:15.292460+00:00 app[api]: Release v28 created by user kurare.i22@gmail.com 2020-02-07T08:53:17.246620+00:00 heroku[web.1]: Stopping all processes with SIGTERM 2020-02-07T08:53:17.271425+00:00 app[web.1]: Stopping php-fpm... 2020-02-07T08:53:17.272706+00:00 app[web.1]: SIGTERM received, attempting graceful shutdown... 2020-02-07T08:53:17.272842+00:00 app[web.1]: Stopping httpd... 2020-02-07T08:53:17.291607+00:00 app[web.1]: Shutdown complete. 2020-02-07T08:53:17.353156+00:00 heroku[web.1]: Process exited with status 143 2020-02-07T08:53:15.292460+00:00 app[api]: Remove DB_SOCKET config vars by user kurare.i22@gmail.com 2020-02-07T08:53:18.020795+00:00 heroku[web.1]: Starting process with command `heroku-php-apache2` 2020-02-07T08:53:20.824737+00:00 heroku[web.1]: State changed from starting to up 2020-02-07T08:53:20.471119+00:00 app[web.1]: Optimizing defaults for 1X dyno... 2020-02-07T08:53:20.497534+00:00 app[web.1]: 4 processes at 128MB memory limit. 2020-02-07T08:53:20.507740+00:00 app[web.1]: Starting php-fpm... 2020-02-07T08:53:20.678520+00:00 app[web.1]: Starting httpd... 2020-02-07T09:26:08.425833+00:00 heroku[web.1]: Idling 2020-02-07T09:26:08.430140+00:00 heroku[web.1]: State changed from up to down 2020-02-07T09:26:11.979276+00:00 heroku[web.1]: Stopping all processes with SIGTERM 2020-02-07T09:26:11.995586+00:00 app[web.1]: Stopping httpd... 2020-02-07T09:26:11.996393+00:00 app[web.1]: SIGTERM received, attempting graceful shutdown... 2020-02-07T09:26:11.996396+00:00 app[web.1]: Stopping php-fpm... 2020-02-07T09:26:11.996398+00:00 app[web.1]: Stopping httpd gracefully... 2020-02-07T09:26:12.085030+00:00 app[web.1]: Shutdown complete. 2020-02-07T09:26:12.144070+00:00 heroku[web.1]: Process exited with status 143 2020-02-07T10:29:16.411071+00:00 heroku[web.1]: Unidling 2020-02-07T10:29:16.427427+00:00 heroku[web.1]: State changed from down to starting 2020-02-07T10:29:19.416460+00:00 heroku[web.1]: Starting process with command `heroku-php-apache2` 2020-02-07T10:29:23.846096+00:00 app[web.1]: Optimizing defaults for 1X dyno... 2020-02-07T10:29:23.934147+00:00 app[web.1]: 4 processes at 128MB memory limit. 2020-02-07T10:29:23.952811+00:00 app[web.1]: Starting php-fpm... 2020-02-07T10:29:24.542362+00:00 app[web.1]: Starting httpd... 2020-02-07T10:29:25.014611+00:00 heroku[web.1]: State changed from starting to up 2020-02-07T10:29:26.486000+00:00 app[web.1]: [Fri Feb 07 19:29:26.482658 2020] [autoindex:error] [pid 143:tid 139627574851328] [client 10.5.232.217:12731] AH01276: Cannot serve directory /app/: No matching DirectoryIndex (index.php,index.html,index.htm) found, and server-generated directory index forbidden by Options directive, referer: https://dashboard.heroku.com/ 2020-02-07T10:29:26.487457+00:00 app[web.1]: 10.5.232.217 - - [07/Feb/2020:19:29:26 +0900] "GET / HTTP/1.1" 403 199 "https://dashboard.heroku.com/" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_12_6) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/80.0.3987.87 Safari/537.36 2020-02-07T10:29:26.484249+00:00 heroku[router]: at=info method=GET path="/" host=dondonkun.herokuapp.com request_id=399da365-9350-48da-b256-668b63cf0a35 fwd="106.72.41.224" dyno=web.1 connect=1ms service=3ms status=403 bytes=363 protocol=https 2020-02-07T10:29:34.451893+00:00 heroku[router]: at=info method=GET path="/" host=dondonkun.herokuapp.com request_id=49a9810d-aec3-427c-b113-66a4726514d2 fwd="106.72.41.224" dyno=web.1 connect=1ms service=2ms status=403 bytes=363 protocol=https
アドバイスをお願い致します。
回答2件
あなたの回答
tips
プレビュー