简体   繁体   English

Heroku与红宝石在轨道上和Mongoid

[英]Heroku with ruby on rails and Mongoid

I am working on a project in ROR with Mongoid. 我正在与Mongoid一起进行ROR项目。 The app is working fine when running rails offline server but when I deploy it on Heroku it is throwing me this error 运行Rails脱机服务器时,该应用程序运行正常,但是当我在Heroku上部署它时,会抛出此错误

2016-02-03T16:34:08.405268+00:00 heroku[web.1]: Process exited with status 1
2016-02-03T16:34:08.394021+00:00 heroku[web.1]: State changed from starting to crashed
2016-02-03T16:35:22.597553+00:00 heroku[api]: Starting process with command `bundle exec rake db:migrate` by vikkycorner@gmail.com
2016-02-03T16:35:26.533751+00:00 heroku[run.9627]: Awaiting client
2016-02-03T16:35:26.926674+00:00 heroku[run.9627]: State changed from starting to up
2016-02-03T16:35:56.536107+00:00 heroku[run.9627]: Error R13 (Attach error) -> Failed to attach to process
2016-02-03T16:35:57.348246+00:00 heroku[run.9627]: State changed from up to complete
2016-02-03T16:35:57.337946+00:00 heroku[run.9627]: Process exited with status 128
2016-02-03T16:38:37.531037+00:00 heroku[router]: at=error code=H10 desc="App crashed" method=GET path="/user/all" host=attendmare.herokuapp.com request_id=2d492460-a6cd-44f1-8c72-67b84e92e4e6 fwd="198.7.58.147" dyno= connect= service= status=503 byte

I am not using ActiveRecords but using Mongoid so please suggest me any solution to this problem. 我不是在使用ActiveRecords,而是在使用Mongoid,因此请向我建议解决此问题的任何方法。

Thanks in advance 提前致谢

There are many reason cause app crash in heroku for example heroku server missing some require gem in your app. 导致应用程序崩溃的原因有很多,例如heroku服务器缺少某些需要在应用程序中运行的gem。 use 采用
$ heroku logs --tail $ heroku日志--tail
to view exactly what happen in heroku server. 查看确切在heroku服务器中发生的情况。

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

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