15
15

More than 5 years have passed since last update.

Heroku で Asset Pipeline を使う

Posted at

Heroku で Asset Pipeline を使う

config/environments/production.rb
   # config.assets.css_compressor = :sass

   # Whether to fallback to assets pipeline if a precompiled asset is missed.
-  config.assets.compile = false
+  config.assets.compile = true

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

上記の様に変更してherokuにpushするだけで上手くいきました
これをしておかないとassets/*が404になってしまいます
precompileを使った手順の方が良さそう(?)なので下記なども参考にすると良さそうです。

参考

15
15
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
15
15