最新消息: 电脑我帮您提供丰富的电脑知识,编程学习,软件下载,win7系统下载。

无法将项目部署到heroku

IT培训 admin 11浏览 0评论

无法将项目部署到heroku

我试图将项目部署到heroku,但无法执行,因为出现应用程序错误。我检查了日志以及得到的信息。我已经两次创建一个新项目并将其部署到heroku,但没有任何效果我的日志:

2020-03-24T15:42:17.850087+00:00 app[api]: Release v2 created by user [email protected]
2020-03-24T15:42:17.850087+00:00 app[api]: Enable Logplex by user [email protected]
2020-03-24T15:42:17.619338+00:00 app[api]: Release v1 created by user [email protected]
2020-03-24T15:42:17.619338+00:00 app[api]: Initial release by user [email protected]
2020-03-24T15:48:41.000000+00:00 app[api]: Build started by user [email protected]
2020-03-24T15:50:18.725239+00:00 app[api]: Scaled to web@1:Free by user [email protected]
2020-03-24T15:50:18.704621+00:00 app[api]: Release v3 created by user [email protected]
2020-03-24T15:50:18.704621+00:00 app[api]: Deploy befed784 by user [email protected]
2020-03-24T15:50:25.000000+00:00 app[api]: Build succeeded
2020-03-24T15:50:31.090135+00:00 heroku[web.1]: Starting process with command `npm start`
2020-03-24T15:50:34.343645+00:00 app[web.1]:
2020-03-24T15:50:34.343668+00:00 app[web.1]: > [email protected] start /app
2020-03-24T15:50:34.343668+00:00 app[web.1]: > react-scripts start
2020-03-24T15:50:34.343668+00:00 app[web.1]:
2020-03-24T15:50:38.383048+00:00 app[web.1]: ℹ 「wds」: Project is running at http://172.19.89.142/
2020-03-24T15:50:38.383799+00:00 app[web.1]: ℹ 「wds」: webpack output is served from
2020-03-24T15:50:38.383980+00:00 app[web.1]: ℹ 「wds」: Content not from webpack is served from /app/public
2020-03-24T15:50:38.384112+00:00 app[web.1]: ℹ 「wds」: 404s will fallback to /
2020-03-24T15:50:38.388825+00:00 app[web.1]: Starting the development server...
2020-03-24T15:50:38.388827+00:00 app[web.1]:
2020-03-24T15:50:38.609712+00:00 heroku[web.1]: State changed from starting to crashed
2020-03-24T15:50:38.615793+00:00 heroku[web.1]: State changed from crashed to starting
2020-03-24T15:50:38.592130+00:00 heroku[web.1]: Process exited with status 0
2020-03-24T15:50:45.914934+00:00 heroku[web.1]: Starting process with command `npm start`
2020-03-24T15:50:48.196103+00:00 app[web.1]:
2020-03-24T15:50:48.196153+00:00 app[web.1]: > [email protected] start /app
2020-03-24T15:50:48.196154+00:00 app[web.1]: > react-scripts start
2020-03-24T15:50:48.196155+00:00 app[web.1]: 
2020-03-24T15:50:50.107577+00:00 app[web.1]: ℹ 「wds」: Project is running at http://172.18.177.26/
2020-03-24T15:50:50.107952+00:00 app[web.1]: ℹ 「wds」: webpack output is served from
2020-03-24T15:50:50.108048+00:00 app[web.1]: ℹ 「wds」: Content not from webpack is served from /app/public
2020-03-24T15:50:50.108113+00:00 app[web.1]: ℹ 「wds」: 404s will fallback to /
2020-03-24T15:50:50.108298+00:00 app[web.1]: Starting the development server...
2020-03-24T15:50:50.108298+00:00 app[web.1]:
2020-03-24T15:50:50.249772+00:00 heroku[web.1]: State changed from starting to crashed
2020-03-24T15:50:50.233637+00:00 heroku[web.1]: Process exited with status 0
2020-03-24T15:50:50.827613+00:00 heroku[router]: at=error code=H10 desc="App crashed" method=GET path="/" host=mysterious-forest-69349.herokuapp request_id=a1dd32c7-edc8-4cb7-b4e9-c2a0f0b7d15c fwd="109.229.30.180" dyno= connect= service= status=503 bytes= protocol=https
2020-03-24T15:50:51.173161+00:00 heroku[router]: at=error code=H10 desc="App crashed" method=GET path="/favicon.ico" host=mysterious-forest-69349.herokuapp request_id=1446b81a-4758-4493-b409-9354e3fbfaf4 fwd="109.229.30.180" dyno= connect= service= status=503 bytes= protocol=https
2020-03-24T15:56:14.859311+00:00 heroku[router]: at=error code=H10 desc="App crashed" method=GET path="/" host=mysterious-forest-69349.herokuapp request_id=65f6625a-0b18-4aff-ae02-97227d5438b8 fwd="109.229.30.180" dyno= connect= service= status=503 bytes= protocol=https
2020-03-24T15:56:15.131704+00:00 heroku[router]: at=error code=H10 desc="App crashed" method=GET path="/favicon.ico" host=mysterious-forest-69349.herokuapp request_id=532be6ff-69df-44fc-beb5-b1e9ef29932f fwd="109.229.30.180" dyno= connect= service= status=503 bytes= protocol=https

我做了heroku运行的Rails控制台,但是没有帮助

回答如下:

我认为这是原因

2020-03-24T15:50:50.108298 + 00:00 app [web.1]:开始开发 服务器...

react-scripts start将启动开发服务器。尝试改用这个buildpackHeroku Buildpack for create-react-app

无法将项目部署到heroku

我试图将项目部署到heroku,但无法执行,因为出现应用程序错误。我检查了日志以及得到的信息。我已经两次创建一个新项目并将其部署到heroku,但没有任何效果我的日志:

2020-03-24T15:42:17.850087+00:00 app[api]: Release v2 created by user [email protected]
2020-03-24T15:42:17.850087+00:00 app[api]: Enable Logplex by user [email protected]
2020-03-24T15:42:17.619338+00:00 app[api]: Release v1 created by user [email protected]
2020-03-24T15:42:17.619338+00:00 app[api]: Initial release by user [email protected]
2020-03-24T15:48:41.000000+00:00 app[api]: Build started by user [email protected]
2020-03-24T15:50:18.725239+00:00 app[api]: Scaled to web@1:Free by user [email protected]
2020-03-24T15:50:18.704621+00:00 app[api]: Release v3 created by user [email protected]
2020-03-24T15:50:18.704621+00:00 app[api]: Deploy befed784 by user [email protected]
2020-03-24T15:50:25.000000+00:00 app[api]: Build succeeded
2020-03-24T15:50:31.090135+00:00 heroku[web.1]: Starting process with command `npm start`
2020-03-24T15:50:34.343645+00:00 app[web.1]:
2020-03-24T15:50:34.343668+00:00 app[web.1]: > [email protected] start /app
2020-03-24T15:50:34.343668+00:00 app[web.1]: > react-scripts start
2020-03-24T15:50:34.343668+00:00 app[web.1]:
2020-03-24T15:50:38.383048+00:00 app[web.1]: ℹ 「wds」: Project is running at http://172.19.89.142/
2020-03-24T15:50:38.383799+00:00 app[web.1]: ℹ 「wds」: webpack output is served from
2020-03-24T15:50:38.383980+00:00 app[web.1]: ℹ 「wds」: Content not from webpack is served from /app/public
2020-03-24T15:50:38.384112+00:00 app[web.1]: ℹ 「wds」: 404s will fallback to /
2020-03-24T15:50:38.388825+00:00 app[web.1]: Starting the development server...
2020-03-24T15:50:38.388827+00:00 app[web.1]:
2020-03-24T15:50:38.609712+00:00 heroku[web.1]: State changed from starting to crashed
2020-03-24T15:50:38.615793+00:00 heroku[web.1]: State changed from crashed to starting
2020-03-24T15:50:38.592130+00:00 heroku[web.1]: Process exited with status 0
2020-03-24T15:50:45.914934+00:00 heroku[web.1]: Starting process with command `npm start`
2020-03-24T15:50:48.196103+00:00 app[web.1]:
2020-03-24T15:50:48.196153+00:00 app[web.1]: > [email protected] start /app
2020-03-24T15:50:48.196154+00:00 app[web.1]: > react-scripts start
2020-03-24T15:50:48.196155+00:00 app[web.1]: 
2020-03-24T15:50:50.107577+00:00 app[web.1]: ℹ 「wds」: Project is running at http://172.18.177.26/
2020-03-24T15:50:50.107952+00:00 app[web.1]: ℹ 「wds」: webpack output is served from
2020-03-24T15:50:50.108048+00:00 app[web.1]: ℹ 「wds」: Content not from webpack is served from /app/public
2020-03-24T15:50:50.108113+00:00 app[web.1]: ℹ 「wds」: 404s will fallback to /
2020-03-24T15:50:50.108298+00:00 app[web.1]: Starting the development server...
2020-03-24T15:50:50.108298+00:00 app[web.1]:
2020-03-24T15:50:50.249772+00:00 heroku[web.1]: State changed from starting to crashed
2020-03-24T15:50:50.233637+00:00 heroku[web.1]: Process exited with status 0
2020-03-24T15:50:50.827613+00:00 heroku[router]: at=error code=H10 desc="App crashed" method=GET path="/" host=mysterious-forest-69349.herokuapp request_id=a1dd32c7-edc8-4cb7-b4e9-c2a0f0b7d15c fwd="109.229.30.180" dyno= connect= service= status=503 bytes= protocol=https
2020-03-24T15:50:51.173161+00:00 heroku[router]: at=error code=H10 desc="App crashed" method=GET path="/favicon.ico" host=mysterious-forest-69349.herokuapp request_id=1446b81a-4758-4493-b409-9354e3fbfaf4 fwd="109.229.30.180" dyno= connect= service= status=503 bytes= protocol=https
2020-03-24T15:56:14.859311+00:00 heroku[router]: at=error code=H10 desc="App crashed" method=GET path="/" host=mysterious-forest-69349.herokuapp request_id=65f6625a-0b18-4aff-ae02-97227d5438b8 fwd="109.229.30.180" dyno= connect= service= status=503 bytes= protocol=https
2020-03-24T15:56:15.131704+00:00 heroku[router]: at=error code=H10 desc="App crashed" method=GET path="/favicon.ico" host=mysterious-forest-69349.herokuapp request_id=532be6ff-69df-44fc-beb5-b1e9ef29932f fwd="109.229.30.180" dyno= connect= service= status=503 bytes= protocol=https

我做了heroku运行的Rails控制台,但是没有帮助

回答如下:

我认为这是原因

2020-03-24T15:50:50.108298 + 00:00 app [web.1]:开始开发 服务器...

react-scripts start将启动开发服务器。尝试改用这个buildpackHeroku Buildpack for create-react-app

与本文相关的文章

发布评论

评论列表 (0)

  1. 暂无评论