2016-02-03 144 views
0

我正在使用Mongoid開發ROR項目。運行軌道脫機服務器時,應用程序工作正常,但是當我在Heroku上部署它是我沒有使用ActiveRecords但使用Mongoid所以請建議我任何解決這個問題拋出我這個錯誤Heroku with ruby​​ on rails and Mongoid

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 [email protected] 
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 

在此先感謝

+0

這不是很好的工作 - 當然堆棧跟蹤有更多的東西要繼續下去。 – max

回答

0

有在Heroku的許多原因導致應用程序崩潰例如Heroku的服務器缺少一些需要的寶石在你的應用程序。 使用
$ heroku日誌 - 尾巴
準確地查看在heroku服務器中發生了什麼。

+0

我已經發布了上面的日誌輸出,但我無法理解輸出 –

+0

此鏈接可能會幫助您: http://stackoverflow.com/questions/14892200/cant-heroku-run-rake-db-migrate-through-我的應用程序內 –