apigy / selfstarter

Roll your own crowdfunding
selfstarter.us
Other
3.17k stars 1.63k forks source link

ActionView::Template::Error (Could not find table 'orders'): #79

Closed aarcane closed 10 years ago

aarcane commented 10 years ago

attempting to do a test deployment in passenger/rails, on apache debian 7 On first loading the home page I get the following errors in production.log on each load.

Processing by PreorderController#index as HTML Rendered preorder/homepage/_value_proposition.html.erb (0.1ms) Rendered preorder/homepage/_stats.html.erb (4.2ms) Rendered preorder/homepage/_show_dont_tell.html.erb (6.9ms) Rendered preorder/index.html.erb within layouts/application (9.1ms) Completed 500 Internal Server Error in 13ms

ActionView::Template::Error (Could not find table 'orders'): 20:

21:
    22:
  • 23: <%= number_with_delimiter Order.backers, :delimiter => "," %> 24: <%= Settings.primary_stat %> 25:
  • 26:
  • app/models/order.rb:70:in backers' app/views/preorder/homepage/_stats.html.erb:23:in_app_views_preorder_homepagestats_html_erb2073994486629224114_25188540' app/views/preorder/homepage/_show_dont_tell.html.erb:3:in _app_views_preorder_homepage__show_dont_tell_html_erb__3475623890237893136_28590920' app/views/preorder/index.html.erb:1:in_app_views_preorder_index_html_erb__186831979415567911_28930260'

Jarred-Sumner commented 10 years ago

Have you tried running migrations? (“bundle exec rake db:migrate RAILS_ENV=production”)

On Wednesday, February 5, 2014 at 12:34 PM, Christ Schlacta wrote:

attempting to do a test deployment in passenger/rails, on apache debian 7 On first loading the home page I get the following errors in production.log on each load. Processing by PreorderController#index as HTML Rendered preorder/homepage/valueproposition.html.erb (0.1ms) Rendered preorder/homepage/stats.html.erb (4.2ms) Rendered preorder/homepage/show_dont_tell.html.erb (6.9ms) Rendered preorder/index.html.erb within layouts/application (9.1ms) Completed 500 Internal Server Error in 13ms
ActionView::Template::Error (Could not find table 'orders'): 20:

21:

22:

23: <%= number_with_delimiter Order.backers, :delimiter => "," %> 24: <%= Settings.primary_stat %> 25:
26:

app/models/order.rb:70:in backers' app/views/preorder/homepage/_stats.html.erb:23:inappviews_preorder_homepagestats_html_erb2073994486629224114_25188540' app/views/preorder/homepage/showdont_tell.html.erb:3:in _app_views_preorder_homepageshow_dont_tell_html_erb3475623890237893136_28590920' app/views/preorder/index.html.erb:1:inappviews_preorder_index_html_erb__186831979415567911_28930260'

— Reply to this email directly or view it on GitHub (https://github.com/lockitron/selfstarter/issues/79).

aarcane commented 10 years ago

Thank you @Jarred-Sumner, I found out that passenger has a rails env setting that I had to set to development. It's working now. I'm closing this issue, but hope it'll save someone else similar issues in the future.

aarcane commented 10 years ago

RailsEnv development