Reputation: 3659
I have simple Rails4 app on heroku.
I do some changes in assets like adding image or changing css file.
Run git push heroku master
- it's updated with all changes except assets changes.
Now when I add new commit and push it to heroku, then assets changes from previous commit finally are working.
Any idea why?
Upvotes: 0
Views: 35
Reputation: 3057
This is possibly caused by the sequence of git commands. Make sure you do the assets precompile before your git add so your updated assets are added to the committed change and then pushed.
$bundle exec rake assets:precompile RAILS_ENV=production
$git add -A
$git commit -m "Important update"
$git merge branch_name ....
$git heroku push master
Upvotes: 0
Reputation: 52357
Take a look into what Heroku thinks about assets:
There is always an option to precompile assets manually:
RAILS_ENV=production bundle exec rake assets:precompile
Upvotes: 2
Reputation: 4747
I am not sure, but I had a similar issue. precompile your assets before pushing:
rake assets:precompile
This might do the trick
Upvotes: 0