首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >涡轮.链轮.不支持正确部署回滚的铁路3

涡轮.链轮.不支持正确部署回滚的铁路3
EN

Stack Overflow用户
提问于 2014-12-31 19:19:02
回答 1查看 184关注 0票数 3

涡轮增压链轮似乎在下列情况下失败:

  1. 对分支中现有的css文件进行一些更改。
  2. 运行资产:预编译rake任务。
  3. css文件将由这个创业板编译。
  4. 现在签出/回滚到旧的提交,然后修改css文件。
  5. 运行预编译rake任务不会编译css文件,它仍然包含在以后提交时对css文件所做的更改。

预期结果:应该重新编译css文件,因为它已经恢复到以前的状态。

编辑:来自application.rb的相关代码

代码语言:javascript
复制
#for PDF
config.middleware.use PDFKit::Middleware, :print_media_type => true

# Enable the asset pipeline
config.assets.enabled = true

# Version of your assets, change this if you want to expire all your assets
config.assets.version = '1.0'
config.middleware.use I18n::JS::Middleware

config.sass.preferred_syntax = :sass
config.generators.stylesheet_engine = :sass
config.generators.template_engine = :slim

config.cache_store = :file_store, "tmp/cache" # specifying the cache store to file_store with the default tmp/cache dir

## Append path to the end of routes file to catch routing errors specifically.
config.after_initialize do |app|
  app.routes.append{ match '*a', :to => 'application#error_404' } unless config.consider_all_requests_local
end

来自环境/生产.:

代码语言:javascript
复制
config.cache_classes = true

# Full error reports are disabled and caching is turned on
config.consider_all_requests_local       = false
config.action_controller.perform_caching = true

# Disable Rails's static asset server (Apache or nginx will already do this)
config.serve_static_assets = false

# Compress JavaScripts and CSS
config.assets.compress = true

# Don't fallback to assets pipeline if a precompiled asset is missed
config.assets.compile = true

# Generate digests for assets URLs
config.assets.digest = true
EN

回答 1

Stack Overflow用户

发布于 2015-01-06 15:33:24

更改下列文件:

环境/生产。

代码语言:javascript
复制
# Don't fallback to assets pipeline if a precompiled asset is missed
config.assets.compile = false

application.rb

代码语言:javascript
复制
# Enable the asset pipeline
config.assets.enabled = false
票数 0
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/27725455

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档