2016-03-26 1 views
0

のRails 4.2.6、ユニコーン、AWSのサーバー上で実行されている、私は開発で、application.html.erbで、この問題に実行しているよ:rails 4.2.6 digest fingerprintはapplication.html.erbでは32文字ですが、ファイル上では64文字ですか?

/assets/application-74379e2c156a9bc2dcabee034283e935ad917ff7fc300f7995f67bf5833c26cf.js 

<%= javascript_include_tag "application" %> 

としてレンダリング

(64文字指紋)

と私の生産のようなデモ環境では、この:

<%= javascript_include_tag "application" %> 
ファイルには、64文字の指紋を持っているとして、それが正しい指紋ではないので、サーバーがファイルを見つけることができません

/assets/application-c200f4e6eb576ae5f2edb02fd5772e73.js 

(32文字指紋)

はとしてレンダリングされます。

正しい64文字の指紋をレンダリングする設定を変更する場所が見つかりません。

私はレールガイドとGoogleを使って検索してきました。もちろん、以前のバージョンのレールやheroku用のものですが、この特定の問題を指摘するものはありません。キャップは私の環境とは異なるルビーを使用して展開して、この問題を解決するためにお探しの方のために

# Disable Rails's static asset server (Apache or nginx will already do this). 
config.serve_static_assets = false #(tried setting this to true with same result) 

# Compress JavaScripts and CSS. 
config.assets.js_compressor = :uglifier 

# Version of your assets, change this if you want to expire all your assets. 
config.assets.version = '1.1' 

# Code is not reloaded between requests. 
config.cache_classes = true 

# config.assets.compress = true 

config.assets.compile = false 

config.assets.digest = true 

#config.assets.initialize_on_precompile = false 
#config.assets.precompile += %w('.woff', '.eot', '.svg', '.ttf') 

# Eager load code on boot. This eager loads most of Rails and 
# your application in memory, allowing both thread web servers 
# and those relying on copy on write to perform better. 
# Rake tasks automatically ignore this option for performance. 
config.eager_load = true 

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

[アセットが正しくプリコンパイルされていない](https://cbabhusal.wordpress.com/2015/07/20/ruby-on-rails-production-staging-when-asset-path-is-outdated/) – illusionist

+0

クイックレスポンスのおかげで、私の資産は:クリーンは存在しませんでしたが、資産:クローバーは、私は同じ場所に残っています、ファイルは64文字の指紋で再生され、application.html.erbは1を指します32文字です。 applciation.html.erbに何が指紋であるかを伝えるものは何ですか? – Denis

+0

アップデートとして、すべてのリリースフォルダを削除して再デプロイしました。ログファイルには、テンプレートが見つからず、もはや存在しないリリースフォルダを探していることが示されています。間違いなく問題の一部。 – Denis

答えて

1

:ここ

は私の設定ファイルです。 RVMとrbenvの両方を使用した混在した設定から始まります。私はわずかな変更を強制的に強制し、ログに何が流出しているかを見ているため、この問題を認識しました。 #diggingholes

関連する問題