git push heroku masterまではうまくいったのですが、heroku run rake db:migrateでname:errorがでてしまいます。
$ heroku run rake db:migrate
Running rake db:migrate on koneqanda... up, run.3523
rake aborted!
NameError: undefined local variable or method config' for main:Object /app/config/application.rb:28:in
<top (required)>'
/app/Rakefile:4:in require' /app/Rakefile:4:in
<top (required)>'
(See full trace by running task with --trace)
で指摘されてるところを見ると
application.rb
1/app/config/application.rb 2 3require File.expand_path('../boot', __FILE__) 4 5require 'rails/all' 6 7# Require the gems listed in Gemfile, including any gems 8# you've limited to :test, :development, or :production. 9Bundler.require(*Rails.groups) 10 11module KomaQuestion 12 class Application < Rails::Application 13 # Settings in config/environments/* take precedence over those specified here. 14 # Application configuration should go into files in config/initializers 15 # -- all .rb files in that directory are automatically loaded. 16 17 # Set Time.zone default to the specified zone and make Active Record auto-convert to this zone. 18 # Run "rake -D time" for a list of tasks for finding time zone names. Default is UTC. 19 # config.time_zone = 'Central Time (US & Canada)' 20 21 # The default locale is :en and all translations from config/locales/*.rb,yml are auto loaded. 22 # config.i18n.load_path += Dir[Rails.root.join('my', 'locales', '*.{rb,yml}').to_s] 23 config.i18n.default_locale = :ja 24 25 # Do not swallow errors in after_commit/after_rollback callbacks. 26 config.active_record.raise_in_transactional_callbacks = true 27 end 28end 29# for heroku deploy 30ここ=> config.assets.initialize_on_precompile = false
となっていてこの部分を消すと今度はgit push heroku masterにエラーがでます。どうしたら良いでしょうか?
バッドをするには、ログインかつ
こちらの条件を満たす必要があります。