sfbrigade / bats-server

Routed is an app to help ambulances direct non-critical patients to hospital emergency rooms with the most availability.
https://routedapp.org/
GNU Affero General Public License v3.0
18 stars 12 forks source link

Server crashes on Heroku #219

Closed francisli closed 2 years ago

francisli commented 2 years ago

Logs show that the react-scripts dev server is being run instead of the express server:

2022-08-22T22:56:05.674458+00:00 heroku[web.1]: State changed from crashed to starting
2022-08-22T22:56:16.258605+00:00 heroku[web.1]: Starting process with command `npm start`
2022-08-22T22:56:17.785218+00:00 app[web.1]: 
2022-08-22T22:56:17.785232+00:00 app[web.1]: > bats-server@0.1.0 start
2022-08-22T22:56:17.785232+00:00 app[web.1]: > react-scripts start
2022-08-22T22:56:17.785232+00:00 app[web.1]: 
2022-08-22T22:56:19.392573+00:00 heroku[web.1]: State changed from starting to crashed
2022-08-22T22:56:19.273965+00:00 heroku[web.1]: Process exited with status 0
2022-08-22T22:56:19.157968+00:00 app[web.1]: [HPM] Proxy created: /api,/auth,/libraries,/wss  -> http://localhost:4000
2022-08-22T22:56:19.162629+00:00 app[web.1]: ℹ 「wds」: Project is running at http://172.16.228.18/
2022-08-22T22:56:19.162759+00:00 app[web.1]: ℹ 「wds」: webpack output is served from
2022-08-22T22:56:19.162809+00:00 app[web.1]: ℹ 「wds」: Content not from webpack is served from /app/public
2022-08-22T22:56:19.162841+00:00 app[web.1]: ℹ 「wds」: 404s will fallback to /
2022-08-22T22:56:19.162937+00:00 app[web.1]: Starting the development server...
2022-08-22T22:56:19.162937+00:00 app[web.1]: