タグ

関連タグで絞り込む (0)

  • 関連タグはありません

タグの絞り込みを解除

railsとdockerに関するngyukiのブックマーク (1)

  • Rails Asset Pipeline compilation and Docker

    As you may now Rails asset pipeline (a.k.a. Sprockets) compress your assets (JS, CSS, …) and inserts hash into file name so that CDN can pick up the change: So if you had app.js you will have app-908e25f4bf641868d8683022a5b62f54.js this way your app will interpret: <html> <head> <%= javascript_include_tag 'app' %> <head> To <html> <head> <script src="https://dxxxxxxxxx6lt.cloudfront.net/assets/app

    ngyuki
    ngyuki 2019/08/23
    うーん、そもそも RAILS_ENV によって assets:precompile の結果が変わることがあるらしいのでイメージであらかじめアセットをビルドしておくのは問題もあるっぽい
  • 1