The correct procedure for changing the location of an asset compilation using Heroku

I want to abandon the Herokupre-compilation of assets to pre-compile them when developing and clicking them on Heroku. I understand that the main procedure

  RAILS_ENV=production bundle exec rake assets:precompile
  git add .
  git commit -m 'Add precompiled Assets'
  git push production master

However, this destroys any existing assets on the hero. For example, images referenced by old letters are destroyed. Is there a way to do this and ensure continuity of inherited assets?

+4
source share
1 answer

Based on some support for Heroku support and Schneems comments below, here is not the answer I came to.

  • , , .
  • , CDN .
  • (3.7.1 ).
  • , , , , .
  • , , .

, , .

, , CDN.

0

Source: https://habr.com/ru/post/1664864/


All Articles