Warning: file_get_contents(/data/phpspider/zhask/data//catemap/5/ruby-on-rails-4/2.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Ruby on rails 4 Heroku应用程序错误:can';不能正确迁移数据库吗?_Ruby On Rails 4_Heroku_Carrierwave_Heroku Postgres_Cloudinary - Fatal编程技术网

Ruby on rails 4 Heroku应用程序错误:can';不能正确迁移数据库吗?

Ruby on rails 4 Heroku应用程序错误:can';不能正确迁移数据库吗?,ruby-on-rails-4,heroku,carrierwave,heroku-postgres,cloudinary,Ruby On Rails 4,Heroku,Carrierwave,Heroku Postgres,Cloudinary,安装CarrierWave和Cloudinary后,我的Heroku应用程序将无法启动。根据日志,Heroku不承认CarrierWave方法之一,即使它在开发中有效。(“无法加载应用程序:NameError:未初始化的常量映像::ImageFileUploader”) 我试过heroku运行rake db:migrate。我已经试过了。我尝试用相同的代码创建一个新的应用程序。我做错了什么 Heroku的日志: $heroku日志 2015-06-01T00:48:53.843432+00:00

安装CarrierWave和Cloudinary后,我的Heroku应用程序将无法启动。根据日志,Heroku不承认CarrierWave方法之一,即使它在开发中有效。(“无法加载应用程序:NameError:未初始化的常量映像::ImageFileUploader”)

我试过heroku运行rake db:migrate。我已经试过了。我尝试用相同的代码创建一个新的应用程序。我做错了什么

Heroku的日志:
$heroku日志
2015-06-01T00:48:53.843432+00:00应用程序[web.1]:from/app/vendor/bundle/ruby/2.0.0/gems/railties-4.2.0/lib/rails/engine.rb:469:in'eager_load!'
2015-06-01T00:48:53.843431+00:00应用程序[web.1]:from/app/vendor/bundle/ruby/2.0.0/gems/railties-4.2.0/lib/rails/engine.rb:469:in'each'
2015-06-01T00:48:53.843433+00:00应用程序[web.1]:from/app/vendor/bundle/ruby/2.0.0/gems/railties-4.2.0/lib/rails/engine.rb:346:in'eager_load!'
2015-06-01T00:48:53.843438+00:00应用程序[web.1]:from/app/vendor/bundle/ruby/2.0.0/gems/railties-4.2.0/lib/rails/application/finisher.rb:56:in'block in'
2015-06-01T00:48:53.843436+00:00应用程序[web.1]:from/app/vendor/bundle/ruby/2.0.0/gems/railties-4.2.0/lib/rails/application/finisher.rb:56:in'each'
2015-06-01T00:48:53.843439+00:00应用程序[web.1]:from/app/vendor/bundle/ruby/2.0.0/gems/railties-4.2.0/lib/rails/initializable.rb:30:in'instance_exec'
2015-06-01T00:48:53.843442+00:00应用程序[web.1]:from/app/vendor/bundle/ruby/2.0.0/gems/railties-4.2.0/lib/rails/initializable.rb:30:in'run'
2015-06-01T00:48:53.843443+00:00应用程序[web.1]:from/app/vendor/bundle/ruby/2.0.0/gems/railties-4.2.0/lib/rails/initializable.rb:55:in'block in run_initializer'
2015-06-01T00:48:53.843446+00:00应用程序[web.1]:from/app/vendor/ruby-2.0.0/lib/ruby/2.0.0/tsort.rb:150:in“每个端口中的块”
2015-06-01T00:48:53.843451+00:00应用程序[web.1]:from/app/vendor/ruby-2.0.0/lib/ruby/2.0.0/tsort.rb:219:在“每个强连接的组件”中
2015-06-01T00:48:53.843448+00:00应用程序[web.1]:from/app/vendor/ruby-2.0.0/lib/ruby/2.0.0/tsort.rb:183:在每个强连接的组件中的“块(2级)”中
2015-06-01T00:48:53.843454+00:00应用程序[web.1]:from/app/vendor/ruby-2.0.0/lib/ruby/2.0.0/tsort.rb:182:“每个强连接的组件中的块”
2015-06-01T00:48:53.843455+00:00应用程序[web.1]:from/app/vendor/ruby-2.0.0/lib/ruby/2.0.0/tsort.rb:180:in'each'
2015-06-01T00:48:53.843461+00:00应用程序[web.1]:from/app/vendor/ruby-2.0.0/lib/ruby/2.0.0/tsort.rb:180:“每个强连接的组件”
2015-06-01T00:48:53.843464+00:00应用程序[web.1]:from/app/vendor/ruby-2.0.0/lib/ruby/2.0.0/tsort.rb:148:in'tsort_each'
2015-06-01T00:48:53.843465+00:00应用程序[web.1]:from/app/vendor/bundle/ruby/2.0.0/gems/railties-4.2.0/lib/rails/initializable.rb:54:in'run_initializers'
2015-06-01T00:48:53.843468+00:00应用程序[web.1]:from/app/vendor/bundle/ruby/2.0.0/gems/railties-4.2.0/lib/rails/application.rb:352:in'initialize!'
2015-06-01T00:48:53.843469+00:00应用程序[web.1]:from/app/config/environment.rb:5:in`'
2015-06-01T00:48:53.843472+00:00应用程序[web.1]:来自config.ru:3:在'require'中
2015-06-01T00:48:53.843476+00:00应用程序[web.1]:来自config.ru:3:在“block in”中
2015-06-01T00:48:53.843479+00:00应用程序[web.1]:from/app/vendor/bundle/ruby/2.0.0/gems/rack-1.6.1/lib/rack/builder.rb:55:in'instance_eval'
2015-06-01T00:48:53.843480+00:00应用程序[web.1]:from/app/vendor/bundle/ruby/2.0.0/gems/rack-1.6.1/lib/rack/builder.rb:55:在“初始化”中
2015-06-01T00:48:53.843486+00:00应用程序[web.1]:来自config.ru:in`'
2015-06-01T00:48:53.843483+00:00应用程序[web.1]:来自config.ru:in'new'
2015-06-01T00:48:53.843489+00:00应用程序[web.1]:from/app/vendor/bundle/ruby/2.0.0/gems/rack-1.6.1/lib/rack/builder.rb:49:in'eval'
2015-06-01T00:48:53.843492+00:00应用程序[web.1]:from/app/vendor/bundle/ruby/2.0.0/gems/rack-1.6.1/lib/rack/builder.rb:49:in“new_from_string”
2015-06-01T00:48:53.843496+00:00应用程序[web.1]:from/app/vendor/bundle/ruby/2.0.0/gems/rack-1.6.1/lib/rack/builder.rb:40:in'parse_file'
2015-06-01T00:48:53.843499+00:00应用程序[web.1]:from/app/vendor/bundle/ruby/2.0.0/gems/puma-2.11.1/lib/puma/configuration.rb:107:in'app'
2015-06-01T00:48:53.843500+00:00应用程序[web.1]:from/app/vendor/bundle/ruby/2.0.0/gems/puma-2.11.1/lib/puma/runner.rb:113:in'load_and_bind'
2015-06-01T00:48:53.843506+00:00应用程序[web.1]:from/app/vendor/bundle/ruby/2.0.0/gems/puma-2.11.1/lib/puma/cli.rb:512:在“运行”中
2015-06-01T00:48:53.843509+00:00应用程序[web.1]:from/app/vendor/bundle/ruby/2.0.0/gems/puma-2.11.1/bin/puma:10:in`'
2015-06-01T00:48:53.843503+00:00应用程序[web.1]:from/app/vendor/bundle/ruby/2.0.0/gems/puma-2.11.1/lib/puma/cluster.rb:301:运行中
2015-06-01T00:48:53.843512+00:00应用程序[web.1]:from/app/vendor/bundle/ruby/2.0.0/bin/puma:23:in'load'
2015-06-01T00:48:53.843515+00:00应用程序[web.1]:from/app/vendor/bundle/ruby/2.0.0/bin/puma:23:in`'
2015-06-01T00:48:54.702444+00:00 heroku[web.1]:进程退出,状态为1
2015-06-01T00:48:54.731224+00:00 heroku[web.1]:状态从开始更改为崩溃
2015-06-01T00:48:57.895443+00:00 heroku[api]:通过命令“bundle exec rake db:migrate”启动进程jg2758@gmail.com
2015-06-01T00:49:01.593848+00:00 heroku[run.1852]:使用命令“bundle exec rake db:migrate”启动进程`
2015-06-01T00:49:01.550327+00:00 heroku[run.1852]:等待客户
2015-06-01T00:49:01.828367+00:00 heroku[run.1852]:状态从启动更改为启动
2015-06-01T00:49:06.598219+00:00 heroku[run.1852]:状态从up更改为complete
2015-06-01T00:49:06.584931+00:00 heroku[run.1852]:进程已退出,状态为0
2015-06-01T00:49:14.826659+00:00 heroku[api]:通过命令“bundle exec rake db:migrate”启动进程jg2758@gmail.com
2015-06-01T00:49:19.919812+00:00 heroku[run.1011]:等待客户
2015-06-01T00:49:20.109250+00:00 heroku[run.1011]:状态从启动更改为启动
2015-06-01T00:49:20.176967+00:00 heroku[run.1011]:圣