Как исправить ошибку H10 на Heroku, развернув приложение Rails и React - PullRequest
1 голос
/ 05 августа 2020

Я создал веб-сайт и пытаюсь разместить его на Heroku. Frontend - React: https://github.com/Dwake5/Mollys-pet---home-care Backend - Rails: https://github.com/Dwake5/mollys-pet---home-care-backend

Я создал файл proc (backend) как таковой:

web: bundle exec rails server -p $PORT

И файл .env (интерфейс), например:

app.listen(process.env.PORT || 3000, () => {
    console.log(`Our app is running on port`);
});

Бэкэнд работает нормально, может получать от него вызовы api и посещать его. Глядя на журналы Heroku --tail, я получаю это сообщение об ошибке.

2020-08-05T13:56:23.393124+00:00 heroku[router]: at=error code=H10 desc="App crashed" method=GET path="/" host=mollyspetandhomecare.herokuapp.com request_id=28ae7ce9-ae45-4a47-87d8-16ec59b31f97 fwd="92.5.55.220" dyno= connect= service= status=503 bytes= protocol=https
2020-08-05T13:59:35.709729+00:00 heroku[router]: at=error code=H10 desc="App crashed" method=GET path="/" host=mollyspetandhomecare.herokuapp.com request_id=71b4d4d4-4ffc-4354-a0dc-21f7b1e11a46 fwd="92.5.55.220" dyno= connect= service= status=503 bytes= protocol=https
2020-08-05T13:59:39.981023+00:00 heroku[router]: at=error code=H10 desc="App crashed" method=GET path="/" host=mollyspetandhomecare.herokuapp.com request_id=78899659-74b1-478b-81df-3ee14f79a750 fwd="92.5.55.220" dyno= connect= service= status=503 bytes= protocol=https
2020-08-05T14:06:24.755065+00:00 heroku[router]: at=error code=H10 desc="App crashed" method=GET path="/" host=mollyspetandhomecare.herokuapp.com request_id=fdf741ec-9aa4-4c71-9997-4d18036c4863 fwd="92.5.55.220" dyno= connect= service= status=503 bytes= protocol=https
2020-08-05T14:06:35.319673+00:00 heroku[router]: at=error code=H10 desc="App crashed" method=GET path="/" host=mollyspetandhomecare.herokuapp.com request_id=84a4997b-1b64-4bb0-8c5a-78ca5903abfd fwd="92.5.55.220" dyno= connect= service= status=503 bytes= protocol=https

Любая помощь приветствуется.

...