Ruby on rails Rails 4,将应用程序推送到Heroku,没有CSS和JS
我已经把我的rails 4应用程序推到heroku,一切正常 我通过分叉原始生产应用程序创建了一个staging应用程序,并将其命名为staging。 现在我有两个应用程序:制作和登台 使用我复制的相同配置 config/environments/staging.rb中的config/environments/production.rb 我已经把heroku推进去了:Ruby on rails Rails 4,将应用程序推送到Heroku,没有CSS和JS,ruby-on-rails,heroku,ruby-on-rails-4,asset-pipeline,Ruby On Rails,Heroku,Ruby On Rails 4,Asset Pipeline,我已经把我的rails 4应用程序推到heroku,一切正常 我通过分叉原始生产应用程序创建了一个staging应用程序,并将其命名为staging。 现在我有两个应用程序:制作和登台 使用我复制的相同配置 config/environments/staging.rb中的config/environments/production.rb 我已经把heroku推进去了: git push staging master 但问题是在登台应用程序中我没有css和js,但在生产应用程序中我两者都有 这是
git push staging master
但问题是在登台应用程序中我没有css和js,但在生产应用程序中我两者都有
这是我的production.rb文件
#config/environments/production.rb
CentroservizirovigoCom::Application.configure do
# Settings specified here will take precedence over those in config/application.rb.
# Code is not reloaded between requests.
config.cache_classes = true
config.eager_load = true
config.consider_all_requests_local = false
config.action_controller.perform_caching = true
config.serve_static_assets = false
# Compress JavaScripts and CSS.
config.assets.js_compressor = :uglifier
# config.assets.css_compressor = :sass
# Do not fallback to assets pipeline if a precompiled asset is missed.
config.assets.compile = false
config.assets.digest = true
config.assets.version = '1.0'
config.log_level = :info
config.i18n.fallbacks = true
# Send deprecation notices to registered listeners.
config.active_support.deprecation = :notify
config.log_formatter = ::Logger::Formatter.new
end
你能帮我吗 你能粘贴你的环境配置用于登台和生产吗?好的,我已经发布了production.rb文件。暂存是生产的副本。制作厂