Heroku推送不完整
Heroku push incomplete
我有一个 rails 应用程序可以在本地主机上完美运行,但上次我将它推送到 Heroku 时 "About" 和 "Contact" 部分似乎上传不完整或其他什么,这里是link 到网站 https://damp-inlet-9409.herokuapp.com,是的,我重新推送了 3 次,结果仍然相同
更新:
我认为问题出在 development.rb 或 production.rb,给你:
Production.rb
Rails.application.configure do
config.cache_classes = true
config.eager_load = true
config.consider_all_requests_local = false
config.action_controller.perform_caching = true
config.serve_static_files = ENV['RAILS_SERVE_STATIC_FILES'].present?
config.assets.js_compressor = :uglifier
config.assets.compile = true
config.assets.digest = true
config.log_level = :debug
config.i18n.fallbacks = true
config.active_support.deprecation = :notify
config.log_formatter = ::Logger::Formatter.new
config.active_record.dump_schema_after_migration = false
end
Development.rb
Rails.application.configure do
config.cache_classes = false
config.eager_load = false
config.consider_all_requests_local = true
config.action_controller.perform_caching = false
config.action_mailer.raise_delivery_errors = false
config.active_support.deprecation = :log
config.active_record.migration_error = :page_load
config.assets.debug = true
config.assets.digest = true
config.assets.raise_runtime_errors = true
end
您的问题有多种可能性。
首先,您收到 rails 错误,这意味着在基本级别(IE Heroku 数据库等),应用程序应该可以正常运行。
许多 Heroku
应用程序的主要问题是它们没有数据库,这会产生 Heroku "Application Error":
为了将来参考,此错误意味着您对 Heroku 是如何 运行 您的应用有疑问(通常是您没有数据库或其他东西).
由于您有 rails 错误,这意味着问题可能是未声明的变量,或缺少条件登录等。
--
要解决此问题,您需要检查 Heroku
日志:
这将为您提供阻止该应用程序运行的问题的具体读数 运行。然后,您可以更好地向我们提供所述错误的详细信息,或者自己解决问题。
我有一个 rails 应用程序可以在本地主机上完美运行,但上次我将它推送到 Heroku 时 "About" 和 "Contact" 部分似乎上传不完整或其他什么,这里是link 到网站 https://damp-inlet-9409.herokuapp.com,是的,我重新推送了 3 次,结果仍然相同
更新:
我认为问题出在 development.rb 或 production.rb,给你:
Production.rb
Rails.application.configure do
config.cache_classes = true
config.eager_load = true
config.consider_all_requests_local = false
config.action_controller.perform_caching = true
config.serve_static_files = ENV['RAILS_SERVE_STATIC_FILES'].present?
config.assets.js_compressor = :uglifier
config.assets.compile = true
config.assets.digest = true
config.log_level = :debug
config.i18n.fallbacks = true
config.active_support.deprecation = :notify
config.log_formatter = ::Logger::Formatter.new
config.active_record.dump_schema_after_migration = false
end
Development.rb
Rails.application.configure do
config.cache_classes = false
config.eager_load = false
config.consider_all_requests_local = true
config.action_controller.perform_caching = false
config.action_mailer.raise_delivery_errors = false
config.active_support.deprecation = :log
config.active_record.migration_error = :page_load
config.assets.debug = true
config.assets.digest = true
config.assets.raise_runtime_errors = true
end
您的问题有多种可能性。
首先,您收到 rails 错误,这意味着在基本级别(IE Heroku 数据库等),应用程序应该可以正常运行。
许多 Heroku
应用程序的主要问题是它们没有数据库,这会产生 Heroku "Application Error":
为了将来参考,此错误意味着您对 Heroku 是如何 运行 您的应用有疑问(通常是您没有数据库或其他东西).
由于您有 rails 错误,这意味着问题可能是未声明的变量,或缺少条件登录等。
--
要解决此问题,您需要检查 Heroku
日志:
这将为您提供阻止该应用程序运行的问题的具体读数 运行。然后,您可以更好地向我们提供所述错误的详细信息,或者自己解决问题。