laravelとvue.jsで作ったアプリをherokuでデプロイしようとしています。My sqlを使っています
git push heroku masterというコマンドでデプロイはまでは成功したのですが、マイグレーションでこのようなエラーに引っかかりました。
In Connection.php line 664: SQLSTATE[HY000] [2002] No such file or directory (SQL: select * from information_schema.tables where table_schema = DB_TABLEの名前 and table_name = migrations and table_type = 'BASE TABLE') In Connector.php line 70: SQLSTATE[HY000] [2002] No such file or directory
また、デプロイは成功しているにも関わらずurlにアクセスすると、
Forbidden You don't have permission to access this resource.
と出てしまいます。そこでログを見ると
Stopping all processes with SIGTERM 2020-08-02T05:01:34.100465+00:00 heroku[web.1]: Process exited with status 143
というエラーが出ます。
試したこと
Process exited with status 143
というエラーに対して、herokuをrestartしてみたがエラーが消えず。
マイグレーションした時のエラーに対して
laraevlのenv にunix_socketを追加してみたがエラーが消えず。
何か原因と考えられることはあるでしょうか
$ git push heroku masterを実行した後、これがコマンドに出るのですが、これはデプロイ成功している時の表示ではありませんか?
remote: > @php artisan package:discover --ansi remote: Discovered Package: fideloper/proxy remote: Discovered Package: laravel/tinker remote: Discovered Package: nesbot/carbon remote: Package manifest generated successfully. remote: 31 packages you are using are looking for funding. remote: Use the `composer fund` command to find out more! remote: -----> Preparing runtime environment... remote: NOTICE: No Procfile, using 'web: heroku-php-apache2'. remote: -----> Checking for additional extensions to install... remote: -----> Discovering process types remote: Procfile declares types -> web remote: remote: -----> Compressing... remote: Done: 30.1M remote: -----> Launching... remote: Released v13 remote: https://haiki.herokuapp.com/ deployed to Heroku
追加
デプロイ後500エラーが出る。ローカル環境では問題なく動く
(1/1) InvalidArgumentException View [Auth.register] not found. in FileViewFinder.php line 137 at FileViewFinder->findInPaths() in FileViewFinder.php line 79 at FileViewFinder->find() in Factory.php line 131 at Factory->make() in helpers.php line 971 at view() in RegisterController.php line 20 at RegisterController->showRegistrationForm() at call_user_func_array() in Controller.php line 54 at Controller->callAction() in ControllerDispatcher.php line 45 at ControllerDispatcher->dispatch() in Route.php line 219 at Route->runController() in Route.php line 176 at Route->run() in Router.php line 680 at Router->Illuminate\Routing\{closure}() in Pipeline.php line 30 at Pipeline->Illuminate\Routing\{closure}() in RedirectIfAuthenticated.php line 24 at RedirectIfAuthenticated->handle() in Pipeline.php line 163 at Pipeline->Illuminate\Pipeline\{closure}() in Pipeline.php line 53 at Pipeline->Illuminate\Routing\{closure}() in RememberMeHandler.php line 25 at RememberMeHandler->handle() in Pipeline.php line 163 at Pipeline->Illuminate\Pipeline\{closure}() in Pipeline.php line 53 at Pipeline->Illuminate\Routing\{closure}() in SubstituteBindings.php line 41 at SubstituteBindings->handle() in Pipeline.php line 163 at Pipeline->Illuminate\Pipeline\{closure}() in Pipeline.php line 53 at Pipeline->Illuminate\Routing\{closure}() in VerifyCsrfToken.php line 75 at VerifyCsrfToken->handle() in Pipeline.php line 163 at Pipeline->Illuminate\Pipeline\{closure}() in Pipeline.php line 53 at Pipeline->Illuminate\Routing\{closure}() in ShareErrorsFromSession.php line 49 at ShareErrorsFromSession->handle() in Pipeline.php line 163 at Pipeline->Illuminate\Pipeline\{closure}() in Pipeline.php line 53 at Pipeline->Illuminate\Routing\{closure}() in StartSession.php line 56 at StartSession->handle() in Pipeline.php line 163 at Pipeline->Illuminate\Pipeline\{closure}() in Pipeline.php line 53 at Pipeline->Illuminate\Routing\{closure}() in AddQueuedCookiesToResponse.php line 37 at AddQueuedCookiesToResponse->handle() in Pipeline.php line 163 at Pipeline->Illuminate\Pipeline\{closure}() in Pipeline.php line 53 at Pipeline->Illuminate\Routing\{closure}() in EncryptCookies.php line 66 at EncryptCookies->handle() in Pipeline.php line 163 at Pipeline->Illuminate\Pipeline\{closure}() in Pipeline.php line 53 at Pipeline->Illuminate\Routing\{closure}() in Pipeline.php line 104 at Pipeline->then() in Router.php line 682 at Router->runRouteWithinStack() in Router.php line 657 at Router->runRoute() in Router.php line 623 at Router->dispatchToRoute() in Router.php line 612 at Router->dispatch() in Kernel.php line 176 at Kernel->Illuminate\Foundation\Http\{closure}() in Pipeline.php line 30 at Pipeline->Illuminate\Routing\{closure}() in TransformsRequest.php line 21 at TransformsRequest->handle() in Pipeline.php line 163 at Pipeline->Illuminate\Pipeline\{closure}() in Pipeline.php line 53 at Pipeline->Illuminate\Routing\{closure}() in TransformsRequest.php line 21 at TransformsRequest->handle() in Pipeline.php line 163 at Pipeline->Illuminate\Pipeline\{closure}() in Pipeline.php line 53 at Pipeline->Illuminate\Routing\{closure}() in ValidatePostSize.php line 27 at ValidatePostSize->handle() in Pipeline.php line 163 at Pipeline->Illuminate\Pipeline\{closure}() in Pipeline.php line 53 at Pipeline->Illuminate\Routing\{closure}() in CheckForMaintenanceMode.php line 62 at CheckForMaintenanceMode->handle() in Pipeline.php line 163 at Pipeline->Illuminate\Pipeline\{closure}() in Pipeline.php line 53 at Pipeline->Illuminate\Routing\{closure}() in TrustProxies.php line 57 at TrustProxies->handle() in Pipeline.php line 163 at Pipeline->Illuminate\Pipeline\{closure}() in Pipeline.php line 53 at Pipeline->Illuminate\Routing\{closure}() in Pipeline.php line 104 at Pipeline->then() in Kernel.php line 151 at Kernel->sendRequestThroughRouter() in Kernel.php line 116 at Kernel->handle() in index.php line 55
回答1件
あなたの回答
tips
プレビュー
バッドをするには、ログインかつ
こちらの条件を満たす必要があります。
2020/08/02 10:09
2020/08/02 10:27
2020/08/03 07:53
2020/08/03 09:51 編集
2020/08/03 13:13
2020/08/03 14:07