以下のサイトをもとにアプリをデプロイし、「heroku open」をコマンドに叩いたところ、「Application error」の画面が開きました。
https://qiita.com/Arashi/items/b2f2e01259238235e187
herokuのログは以下となります。「browser-sync: not found」とログに記載されていますが、ローカルの環境では
「browser-sync start --server --files='./.html, ./.css, ./js/tutor-search-client.js, ./node_modules/mysql/tutor-search-server.js'」や「npm start」を叩くことで問題なく起動できます。
2019-03-05T07:50:29.685006+00:00 app[api]: Set NPM_CONFIG_PRODUCTION config vars by user sacashow@gmail.com
2019-03-05T07:50:36.677058+00:00 heroku[web.1]: Starting process with command npm start
2019-03-05T07:50:39.389527+00:00 heroku[web.1]: State changed from starting to crashed
2019-03-05T07:50:39.283409+00:00 app[web.1]:
2019-03-05T07:50:39.283434+00:00 app[web.1]: > tutorlinerweb@1.0.0 start /app
2019-03-05T07:50:39.283437+00:00 app[web.1]: > browser-sync start --server --files='./.html, ./.css, ./js/tutor-search-client.js, ./node_modules/mysql/tutor-search-server.js'
2019-03-05T07:50:39.283438+00:00 app[web.1]:
2019-03-05T07:50:39.288430+00:00 app[web.1]: sh: 1: browser-sync: not found
2019-03-05T07:50:39.293559+00:00 app[web.1]: npm ERR! file sh
2019-03-05T07:50:39.293852+00:00 app[web.1]: npm ERR! code ELIFECYCLE
2019-03-05T07:50:39.294045+00:00 app[web.1]: npm ERR! errno ENOENT
2019-03-05T07:50:39.294225+00:00 app[web.1]: npm ERR! syscall spawn
2019-03-05T07:50:39.296681+00:00 app[web.1]: npm ERR! tutorlinerweb@1.0.0 start: browser-sync start --server --files='./*.html, ./*.css, ./js/tutor-search-client.js, ./node_modules/mysql/tutor-search-server.js'
2019-03-05T07:50:39.296794+00:00 app[web.1]: npm ERR! spawn ENOENT
2019-03-05T07:50:39.297031+00:00 app[web.1]: npm ERR!
2019-03-05T07:50:39.297190+00:00 app[web.1]: npm ERR! Failed at the tutorlinerweb@1.0.0 start script.
2019-03-05T07:50:39.297455+00:00 app[web.1]: npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
2019-03-05T07:50:39.305630+00:00 app[web.1]:
2019-03-05T07:50:39.305840+00:00 app[web.1]: npm ERR! A complete log of this run can be found in:
2019-03-05T07:50:39.305958+00:00 app[web.1]: npm ERR! /app/.npm/_logs/2019-03-05T07_50_39_299Z-debug.log
2019-03-05T07:50:39.372386+00:00 heroku[web.1]: Process exited with status 1
2019-03-05T07:50:40.565802+00:00 heroku[router]: at=error code=H10 desc="App crashed" method=GET path="/" host=gentle-oasis-91150.herokuapp.com request_id=b4dd45ac-bab6-45d3-8d1d-5816629bf1fb fwd="114.186.156.20" dyno= connect= service= status=503 bytes= protocol=https
2019-03-05T07:50:40.913928+00:00 heroku[router]: at=error code=H10 desc="App crashed" method=GET path="/favicon.ico" host=gentle-oasis-91150.herokuapp.com request_id=5b8239c8-9977-4bca-abc6-a9ca249e479b fwd="114.186.156.20" dyno= connect= service= status=503 bytes= protocol=https
2019-03-05T08:01:15.819079+00:00 heroku[router]: at=error code=H10 desc="App crashed" method=GET path="/" host=gentle-oasis-91150.herokuapp.com request_id=bbe5f3de-c745-4825-9630-81e830fbd9b0 fwd="114.186.156.20" dyno= connect= service= status=503 bytes= protocol=https
2019-03-05T08:01:16.092657+00:00 heroku[router]: at=error code=H10 desc="App crashed" method=GET path="/favicon.ico" host=gentle-oasis-91150.herokuapp.com request_id=58c19053-bd1a-405a-8486-dc202a377d06 fwd="114.186.156.20" dyno= connect= service= status=503 bytes= protocol=https
お手数ですが、アドバイスをいただけると幸いです。
回答1件
あなたの回答
tips
プレビュー