开发者

Heroku error with rails 3.1.0

开发者 https://www.devze.com 2023-04-12 18:37 出处:网络
I just pushed a 1 page, completely static rails app to heroku. There\'s no database and no actual code beyond the routes and some html. After pushing to heroku, trying to load the page and checking lo

I just pushed a 1 page, completely static rails app to heroku. There's no database and no actual code beyond the routes and some html. After pushing to heroku, trying to load the page and checking logs, this is the error I'm getti开发者_StackOverflowng.

ActiveRecord::ConnectionNotEstablished (ActiveRecord::ConnectionNotEstablished):

Are there any rails 3.1.0 compatibility issues with heroku? I'm kind of lost on this one.

Any help would be much appreciated!


If you don't want to use any database just remove activerecord. To do it change require 'rails/all' in config/application.rb to:

require "action_controller/railtie"
require "action_mailer/railtie"
require "active_resource/railtie"
require "sprockets/railtie"
require "rails/test_unit/railtie"
0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号