2014-02-10 51 views
1

我仍然在使用Rails和nginx挣扎,但是我把它大部分整理出来了。现在,如果我能够与rails -s服务器,所有工作正常,我可以看到所有的文章,如果我的3000端口连接到IP nginx的但是我收到以下错误:Rails的SQLite没有这样的表?

App 30780 stderr: Started GET "/articles" for 188.193.201.119 at 2014-02-10 17:57:51 +0000 
App 30780 stderr: Processing by ArticlesController#index as HTML 
App 30780 stderr: SQLite3::SQLException: no such table: articles: SELECT "articles".* FROM "articl$ 
App 30780 stderr: Rendered articles/index.html.erb within layouts/application (2.1ms) 
App 30780 stderr: Completed 500 Internal Server Error in 4ms 
App 30780 stderr: 
App 30780 stderr: ActionView::Template::Error (SQLite3::SQLException: no such table: articles: SEL$ 
App 30780 stderr:  12: </thead> 

随着轨道控制台的所有文章都可以找到,如果我手动运行rails服务器。为什么它给我这里一个错误呢? : -/

+0

这与nginx无关。它看起来像你的查询引用了你没有定义的列。 –

回答

3

解决了这个问题rake db:migrate RAILS_ENV=production