2015-11-07 45 views
0

因此,我試圖將我的Rails應用程序部署到Heroku。部署成功很好,但當我導航到Heroku網址時,我看到了Rails標準「我們很抱歉,但出了問題」的消息。Heroku ActionView :: MissingTemplate(Missing template wordclouds/index,application/index)

我查了Heroku的日誌,並在堆棧跟蹤頂部我看到:

ActionView::MissingTemplate (Missing template wordclouds/index, application/index with {:locale=>[:en], :formats=>[:html], :variants=>[], :handlers=>[:erb, :builder, :raw, :ruby, :coffee, :jbuilder]}. Searched in: 
2015-11-07T19:17:23.924582+00:00 app[web.1]: * "/app/app/views" 

我肯定有一個工作的根路徑,這是wordclouds#index。在我的本地機器上,這個路由和索引視圖在開發中呈現得非常好。 Heroku有什麼不同?

此外,我的應用程序的所有源代碼是on GitHub

回答

0

它看起來像你需要添加文件「index.html.erb」到該文件夾​​的應用程序/視圖/ wordclouds

+0

謝謝泰德,但是如果你看看我的代碼,我已經有了那個文件,在那個目錄中,並且路由存在。 – FluffyKittens

+0

抱歉...我試圖點擊通過github界面,當我應該拉它。非常感謝您的幫助。感謝您向我介紹git子模塊! –

+0

沒問題泰德! Git子模塊會導致很多頭痛。 – FluffyKittens

0

所以,問題是,app/views/wordclouds已被初始化爲git的子模塊,以及Heroku的只是沒不喜歡那樣。一旦我移除子模塊,Heroku就可以正常工作。

相關問題