简体   繁体   English

Heroku应用程序将无法部署,并崩溃,无法确定它是否正在使用我的procfile

[英]Heroku app won't deploy and keeps crashing not sure if it is using my procfile

My app will just not load it keeps timing out and is giving me a 503 h10 error through my logs. 我的应用程序不会加载,它会一直超时,并通过日志显示503 h10错误。

I have worked around the uglifier problem, added a procfile , looked to do a start script but unsure of what will work for that one. 我已经解决了uglifier问题,添加了一个procfile ,看起来可以做一个启动脚本,但是不确定该脚本适用什么。 https://github.com/CarlSciz/Villain_Enterprise_ https://github.com/CarlSciz/Villain_Enterprise_

I have worked around the uglifier problem, added a procfile , looked to do a start script but unsure of what will work for that one. 我已经解决了uglifier问题,添加了一个procfile ,看起来可以做一个启动脚本,但是不确定该脚本适用什么。 I have also added the bundler gem that it says it's missing. 我还添加了表示它丢失的捆扎机宝石。

2019-06-25T17:10:12.187805+00:00 app[web.1]: To update to the lastest version installed on your system, run `bundle update --bundler`.
2019-06-25T17:10:12.187811+00:00 app[web.1]: To install the missing version, run `gem install bundler:2.0.2`
2019-06-25T17:10:12.187818+00:00 app[web.1]: from /usr/lib/ruby/2.5.0/rubygems.rb:263:in `bin_path'
2019-06-25T17:10:12.187825+00:00 app[web.1]: from /app/bin/bundle:3:in `<main>'
2019-06-25T17:10:13.111607+00:00 heroku[router]: at=error code=H10 desc="App crashed" method=GET path="/" host=villainenterprise.herokuapp.com request_id=9c8f5e4d-ec05-46cd-a953-6bcbbde90008 fwd="68.55.118.239" dyno= connect= service= status=503 bytes= protocol=https
2019-06-25T17:10:15.607654+00:00 heroku[router]: at=error code=H10 desc="App crashed" method=GET path="/favicon.ico" host=villainenterprise.herokuapp.com request_id=a531d7a2-91ba-4f0b-b4d6-f19d1c2a675e fwd="68.55.118.239" dyno= connect= service= status=503 bytes= protocol=https

it just will not load, even the local host won't load now. 它只是不会加载,即使本地主机现在也不会加载。

I just had this problem an hour ago. 一个小时前我刚遇到这个问题。 The bundler 2 update is still causing ripple effects throughout the Ruby world. 捆绑器2更新仍然在整个Ruby世界中引起连锁反应。

Running this in the command line (in the same directory as your app) fixed it for me: 在命令行中(与您的应用位于同一目录中)运行此命令已为我修复:

heroku buildpacks:set https://github.com/bundler/heroku-buildpack-bundler2

As indicated by this comment on GitHub . 在GitHub上的评论所指示。

However, I can say that I am not sure why this is happening - perhaps it is a temporary glitch. 但是,我可以说我不确定为什么会发生这种情况-也许这是暂时的故障。 Yesterday, I was able to deploy a different app to Heroku, without the need to run this command, and this page on Heroku states that Bundler 2 should already be supported natively. 昨天,我能够在不运行此命令的情况下将另一个应用程序部署到Heroku,并且Heroku上的此页面指出Bundler 2应该已经受到本机支持。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM