попробуйте загрузить приложение response + node в heroku - выдает ошибку о пакете. json "start" + img url - PullRequest
0 голосов
/ 06 мая 2020

Я пытаюсь загрузить свое приложение на heroku

Я получил ошибку ниже, не могу понять.

'git pu sh --set-upstream staging master' пульт дистанционного управления 'staging https://git.heroku.com/blabla.git (fetch)'

я получаю сообщение об ошибке:

[remote rejected]     master -> master (pre-receive hook declined)
error: failed to push some refs to 'https://git.heroku.com/blabla.git'

если это помогает:

когда я загружаю приложение в Visual Studio, я открываю 2 терминала -

1 для внешнего интерфейса - интерфейс cd - npm начало

1 для бэкэнда - бэкэнд cd - сервер запуска узла. js


что я делаю не так?


ПАКЕТ JSON В ПЕРЕДНЕЙ КОНЦЕВОЙ ПАПКЕ:

  "scripts": {
    "start": "react-scripts start",
    "build": "react-scripts build",
    "test": "react-scripts test",
    "eject": "react-scripts eject",
  },
}

ПАКЕТ JSON В ЗАДНЕЙ КОНЦЕВОЙ ПАПке:

{
    "main": "server.js",
    "scripts": {
      "test": "echo \"Error: no test specified\" && exit 1",
      "start": "node server.js"
    },
  }

КОД ОШИБКИ

2020-05-06T14:27:33.065460+00:00 heroku[router]: at=error code=H10 desc="App crashed" method=GET path="/favicon.ico" host=np-covid-19-tracker.herokuapp.com request_id=451b134b-f71b-45a2-b80d-6ff484af8923 fwd="77.124.82.234" dyno= connect= service= status=503 bytes= protocol=https
2020-05-06T14:29:19.115585+00:00 heroku[router]: at=error code=H10 desc="App crashed" method=GET path="/" host=np-covid-19-tracker.herokuapp.com request_id=82c472cf-e91d-49c4-bbc2-5e0fde4b2232 fwd="77.124.82.234" dyno= connect= service= status=503 bytes= protocol=https
2020-05-06T14:29:19.425304+00:00 heroku[router]: at=error code=H10 desc="App crashed" method=GET path="/favicon.ico" host=np-covid-19-tracker.herokuapp.com request_id=be89f9f5-330b-41ee-a8be-f0eb303076d5 fwd="77.124.82.234" dyno= connect= service= status=503 bytes= protocol=https
2020-05-06T14:29:21.520127+00:00 heroku[router]: at=error code=H10 desc="App crashed" method=GET path="/" host=np-covid-19-tracker.herokuapp.com request_id=3f8ee4cf-8850-4ce2-adc9-4ba9d7efb9a9 fwd="77.124.82.234" dyno= connect= service= status=503 bytes= protocol=https
2020-05-06T14:29:21.793845+00:00 heroku[router]: at=error code=H10 desc="App crashed" method=GET path="/favicon.ico" host=np-covid-19-tracker.herokuapp.com request_id=c4594f42-6589-422e-b21e-7d06e6444974 fwd="77.124.82.234" dyno= connect= service= status=503 bytes= protocol=https
2020-05-06T14:30:44.796612+00:00 heroku[router]: at=error code=H10 desc="App crashed" method=GET path="/" host=np-covid-19-tracker.herokuapp.com request_id=cc013e92-b29e-48b8-b6a3-56812324a38b fwd="77.124.82.234" dyno= connect= service= status=503 bytes= protocol=https
2020-05-06T14:30:45.090537+00:00 heroku[router]: at=error code=H10 desc="App crashed" method=GET path="/favicon.ico" host=np-covid-19-tracker.herokuapp.com request_id=e4b3caa2-5257-471e-b0f2-207ffe2e6fe8 fwd="77.124.82.234" dyno= connect= service= status=503 bytes= protocol=https
2020-05-06T14:30:50.000000+00:00 app[api]: Build started by user EMAIL@EMAIL.COM
2020-05-06T14:31:03.932757+00:00 heroku[router]: at=error code=H10 desc="App crashed" method=GET path="/" host=np-covid-19-tracker.herokuapp.com request_id=6585cd91-8750-48ad-9a9d-c75a8f82b61a fwd="77.124.82.234" dyno= connect= service= status=503 bytes= protocol=https
2020-05-06T14:31:04.230008+00:00 heroku[router]: at=error code=H10 desc="App crashed" method=GET path="/favicon.ico" host=np-covid-19-tracker.herokuapp.com request_id=c09152d1-2454-450e-8fa7-312238ada727 fwd="77.124.82.234" dyno= connect= service= status=503 bytes= protocol=https
2020-05-06T14:31:30.951225+00:00 app[api]: Release v4 created by user EMAIL@EMAIL.COM
2020-05-06T14:31:30.951225+00:00 app[api]: Deploy 1659eafe by user EMAIL@EMAIL.COM
2020-05-06T14:31:31.000000+00:00 app[api]: Build succeeded
2020-05-06T14:31:32.061500+00:00 heroku[web.1]: State changed from crashed to starting
2020-05-06T14:31:52.069529+00:00 heroku[web.1]: State changed from starting to crashed
2020-05-06T14:31:51.907510+00:00 app[web.1]: npm ERR! missing script: start
2020-05-06T14:31:51.934435+00:00 app[web.1]: 
2020-05-06T14:31:51.935177+00:00 app[web.1]: npm ERR! A complete log of this run can be found in:
...