我有一个在本地运行的RoR应用程序,但是当我将它部署到Heroku时,应用程序因H10错误而崩溃。
正如多个问题中所述,错误日志并非常有用。我按照this问题给出了所有可能的答案,但一切似乎都很好:
提前致谢!
日志如下:
2017-02-07T12:54:24.270796 + 00:00 app [api]:按用户部署ccdb832 hrishikeshpardeshi@gmail.com 2017-02-07T12:54:24.707255 + 00:00 app [api]:发布由用户hrishikeshpardeshi@gmail.com创建的v7 2017-02-07T12:54:25.059219 + 00:00 heroku [web.1]:州改变了 坠毁到开始2017-02-07T12:54:30.496466 + 00:00 heroku [web.1]: 使用命令
bundle exec puma -C config/puma.rb
启动流程 2017-02-07T12:54:33.433084 + 00:00 app [web.1]:bundler:命令不是 发现:puma 2017-02-07T12:54:33.433103 + 00:00 app [web.1]:安装 使用bundle install
丢失宝石可执行文件 2017-02-07T12:54:33.547470 + 00:00 heroku [web.1]:州改变了 开始崩溃2017-02-07T12:54:33.548434 + 00:00 heroku [web.1]: 国家从崩溃变为开始 2017-02-07T12:54:33.533288 + 00:00 heroku [web.1]:进程已退出 状态127 2017-02-07T12:54:39.076000 + 00:00 heroku [web.1]:开始 使用命令bundle exec puma -C config/puma.rb
处理 2017-02-07T12:54:41.312542 + 00:00 app [web.1]:bundler:命令没有 发现:puma 2017-02-07T12:54:41.312561 + 00:00 app [web.1]:安装 使用bundle install
丢失宝石可执行文件 2017-02-07T12:54:41.273272 + 00:00 app [api]:启动过程 用户hrishikeshpardeshi@gmail.com命令bundle install
2017-02-07T12:54:41.437332 + 00:00 heroku [web.1]:状态由:改变 开始崩溃2017-02-07T12:54:41.406962 + 00:00 heroku [web.1]: 处理退出状态127 2017-02-07T12:54:46.473525 + 00:00 heroku [run.3853]:等待客户2017-02-07T12:54:46.699719 + 00:00 heroku [run.3853]:使用命令bundle install
启动进程 2017-02-07T12:54:46.645765 + 00:00 heroku [run.3853]:州改变了 开始向上2017-02-07T12:54:56.711109 + 00:00 heroku [run.3853]: 进程退出状态0 2017-02-07T12:54:56.721230 + 00:00 heroku [run.3853]:状态从完全变为完成 2017-02-07T12:55:06.351307 + 00:00 app [api]:启动过程 用户命令bundle exec rake db:migrate
hrishikeshpardeshi@gmail.com 2017-02-07T12:55:11.878496 + 00:00 heroku [run.9062]:等待客户2017-02-07T12:55:11.910846 + 00:00 heroku [run.9062]:使用命令bundle exec rake db:migrate
启动进程2017-02-07T12:55:12.003058 + 00:00 heroku [run.9062]:状态 从开始变为2017-02-07T12:55:19.873613 + 00:00 heroku [run.9062]:进程退出状态1 2017-02-07T12:55:19.885944 + 00:00 heroku [run.9062]:州改变自 最新完成2017-02-07T12:57:38.720579 + 00:00 heroku [web.1]:状态 从崩溃变为开始2017-02-07T12:57:38.465627 + 00:00 app [api]:发布由用户hrishikeshpardeshi@gmail.com创建的v8 2017-02-07T12:57:38.465627 + 00:00 app [api]:用户部署a1c8e6d hrishikeshpardeshi@gmail.com 2017-02-07T12:57:38.597661 + 00:00 heroku [slug-compiler]:Slug编译开始了 2017-02-07T12:57:38.597673 + 00:00 heroku [slug-compiler]:Slug 汇编完成2017-02-07T12:57:38.642076 + 00:00 app [api]: 发布由用户hrishikeshpardeshi@gmail.com创建的v8 2017-02-07T12:57:43.187357 + 00:00 heroku [web.1]:启动过程 命令bundle exec puma -C config/puma.rb
2017-02-07T12:57:45.183178 + 00:00 app [web.1]:bundler:命令不是 发现:puma 2017-02-07T12:57:45.183197 + 00:00 app [web.1]:安装 使用bundle install
丢失宝石可执行文件 2017-02-07T12:57:45.314860 + 00:00 heroku [web.1]:州改变了 开始崩溃2017-02-07T12:57:45.301215 + 00:00 heroku [web.1]: 处理退出状态127 2017-02-07T12:57:59.399411 + 00:00 app [api]:使用命令bundle exec rake db:migrate
启动进程 用户hrishikeshpardeshi@gmail.com 2017-02-07T12:58:04.149041 + 00:00 heroku [run.7804]:等待客户2017-02-07T12:58:04.193819 + 00:00 heroku [run.7804]:使用命令bundle exec rake db:migrate
启动进程2017-02-07T12:58:04.384181 + 00:00 heroku [run.7804]:状态 从开始变为2017-02-07T12:58:11.107702 + 00:00 heroku [run.7804]:进程退出,状态为0 2017-02-07T12:58:11.116829 + 00:00 heroku [run.7804]:州改变了 最多完成2017-02-07T12:58:19.462586 + 00:00 heroku [router]: at =错误代码= H10 desc =" App崩溃" method = GET path =" /" 主机= fast-refuge-78538.herokuapp.com request_id = 79f2a39b-18a0-440c-8568-77900729062f fwd =" 14.139.123.62" dyno = connect = service = status = 503 bytes = 2017-02-07T12:58:24.892436 + 00:00 heroku [router]:at = error code = H10 desc =" App崩溃" method = GET path =" /" 主机= fast-refuge-78538.herokuapp.com request_id = 5362493e-5ccc-4377-8540-a144ec15757c fwd =" 14.139.123.62" dyno = connect = service = status = 503 bytes = 2017-02-07T12:59:43.955445 + 00:00 heroku [router]:at = error code = H10 desc =" App崩溃" method = GET path =" /" 主机= fast-refuge-78538.herokuapp.com request_id = 1a58fff9-5c78-4257-af94-8fd01d153a5d fwd =" 14.139.123.62" dyno = connect = service = status = 503 bytes =
答案 0 :(得分:1)
看起来它正在尝试使用现在为heroku recommended server的puma bundler: command not found: puma
。
尝试将puma添加到您的gemfile:gem 'puma', '~> 3.4'
,然后再次推送到heroku。