ruby - Heroku isn't updating my CSS and JS -
first thing should mention i'm not using rails. don't have rake assets:precompile
task (tried anyway, didn't work). don't have public/assets
folder either (tried git rm -r public/assets
anyway, didn't work).
for long time, using dropbox deploy heroku (i'm quite newbie code) - planning on moving git in month or so. given issue, made move today , tried pushing through git - didn't work. i.e. did git pull
, settled conflicts , did git push
. still nothing.
basically, heroku isn't loading of new css , js. detects files fine. running git push
says up-to-date, running git status
says there nothing commit. using chrome's inspect tool, js , css files don't have new code wrote.
i tried adding gem rack-flash-session
gemfile , requiring 'rack/flash/test'
in application_controller - crashed whole app , removed it.
i tried installing heroku-repo
plugin , running heroku repo:purge_cache --app my-app-name
didn't work
running code locally, works fine. it's online version that's failing.
i updated heroku cli before trying of , (you guessed it!), didn't work.
i don't know other info you'd need, let me know in comments , i'll happy provide them :)
any appreciated!
refresh page control + shift + r. clear client-side assets cache , newly updated ones. gem cache-busting "asset fingerprinting" - unique string that's appended asset files prevents browsers using stale copy. searched little can't definitively point works sinatra. maybe you'll able find gem works though.
Comments
Post a Comment