nuxt.jsで作成したアプリケーションをHerokuへデプロイしたのですがアプリケーションが立ち上がりません。
ローカルでビルドした時には生成される/.nuxt ディレクトリがproduction環境のビルドでは生成されていません。どこを見ればいいのでしょうか????
2019-04-12T08:26:05.918052+00:00 heroku[web.1]: Starting process with command `npm run start` 2019-04-12T08:26:07.854015+00:00 app[web.1]: 2019-04-12T08:26:07.854033+00:00 app[web.1]: > nuxtapp@1.0.0 start /app 2019-04-12T08:26:07.854035+00:00 app[web.1]: > nuxt start 2019-04-12T08:26:07.854037+00:00 app[web.1]: 2019-04-12T08:26:08.481707+00:00 app[web.1]: 2019-04-12T08:26:08.481750+00:00 app[web.1]: 08:26:08 FATAL No build files found in /app/.nuxt/dist/server. 2019-04-12T08:26:08.481752+00:00 app[web.1]: Use either nuxt build or builder.build() or start nuxt in development mode. 2019-04-12T08:26:08.481754+00:00 app[web.1]: 2019-04-12T08:26:08.481755+00:00 app[web.1]: Use either nuxt build or builder.build() or start nuxt in development mode. 2019-04-12T08:26:08.481758+00:00 app[web.1]: at VueRenderer.ready (node_modules/@nuxt/vue-renderer/dist/vue-renderer.js:2494:13) 2019-04-12T08:26:08.481759+00:00 app[web.1]: 2019-04-12T08:26:08.501811+00:00 app[web.1]: 2019-04-12T08:26:08.501815+00:00 app[web.1]: ╭─────────────────────────────────────────────────────────────────────────────────────╮ 2019-04-12T08:26:08.501817+00:00 app[web.1]: │ │ 2019-04-12T08:26:08.501819+00:00 app[web.1]: │ ✖ Nuxt Fatal Error │ 2019-04-12T08:26:08.501821+00:00 app[web.1]: │ │ 2019-04-12T08:26:08.501823+00:00 app[web.1]: │ Error: No build files found in /app/.nuxt/dist/server. │ 2019-04-12T08:26:08.501824+00:00 app[web.1]: │ Use either `nuxt build` or `builder.build()` or start nuxt in development mode. │ 2019-04-12T08:26:08.501829+00:00 app[web.1]: │ │ 2019-04-12T08:26:08.501831+00:00 app[web.1]: ╰─────────────────────────────────────────────────────────────────────────────────────╯ 2019-04-12T08:26:08.501832+00:00 app[web.1]: 2019-04-12T08:26:08.521234+00:00 app[web.1]: npm ERR! code ELIFECYCLE 2019-04-12T08:26:08.521644+00:00 app[web.1]: npm ERR! errno 1 2019-04-12T08:26:08.522953+00:00 app[web.1]: npm ERR! nuxtapp@1.0.0 start: `nuxt start` 2019-04-12T08:26:08.523082+00:00 app[web.1]: npm ERR! Exit status 1 2019-04-12T08:26:08.523323+00:00 app[web.1]: npm ERR! 2019-04-12T08:26:08.523428+00:00 app[web.1]: npm ERR! Failed at the nuxtapp@1.0.0 start script. 2019-04-12T08:26:08.523550+00:00 app[web.1]: npm ERR! This is probably not a problem with npm. There is likely additional logging output above. 2019-04-12T08:26:08.530132+00:00 app[web.1]: 2019-04-12T08:26:08.530287+00:00 app[web.1]: npm ERR! A complete log of this run can be found in: 2019-04-12T08:26:08.530377+00:00 app[web.1]: npm ERR! /app/.npm/_logs/2019-04-12T08_26_08_524Z-debug.log 2019-04-12T08:26:08.640055+00:00 heroku[web.1]: State changed from starting to crashed 2019-04-12T08:26:08.625855+00:00 heroku[web.1]: Process exited with status 1
Use either `nuxt build` or `builder.build()` or start nuxt in development mode.
と書いてあるのでbuildをしてみたのですがBuild succeededとなったもののエラーは変わらずです、、
#追記
同じコードでNetlifyにデプロイしたところうまくいきました、、!!
Herokuで何を間違えてたかはわかっていません。
バッドをするには、ログインかつ
こちらの条件を満たす必要があります。
2019/04/20 09:58