Closed tengiao closed 6 years ago
Hi :-)
The -a
parameter needs to be the Heroku app name rather than the app's URL. ie:
heroku repo:purge_cache -a ernestbikeberlin
However the error message in this case could definitely make that clearer :-)
Thanks @edmorley!
Having done cache purging now with the correct parameter, the issue still persists.
According to the direction to run purge_cache
, it is (or needs to be?):
done inside a run process on the application.
I have Heroku Toolbelt installed and been running heroku
commands from my Bash shell, and that's where I ran purge_cache
as well.
Not sure what "inside a run process" means.
Appreciate it if anyone could enlighten me ;)
Cheers, Ernest
I believe it means the command is run inside a Heroku one-off dyno: https://devcenter.heroku.com/articles/one-off-dynos
ie: the way you are running the command is just fine.
If clearing the cache using that command didn't help I would try:
master
, so pushing another branch won't take effect)Good luck!
Thanks again @edmorley! You have been of great help!
Unfortunately none of the above options worked, so I'm looking to filing a support ticket :)
Cheers, Ernest
This is definitely not an issue with this CLI plugin, so I'm closing this issue. Please open a support ticket, we can help you much more easily there.
Hi folks!
I have deployed a Heroku app: https://ernestbikeberlin.herokuapp.com/
In my development environment, I created a
Product
class for my database, and I could access it without a problem viahttp://localhost:3000/products
.After deployment and having done a migration on Heroku, upon trying to open https://ernestbikeberlin.herokuapp.com/products, I was given a message saying:
I ran
heroku logs
and found this:blahblahbmx.com
had been used as a dummy URL during development and has since been replaced by a legitimate URL.As this still shows up in the Heroku production environment, I suspect it is an issue of Rails asset caching not cleaning old assets properly. Hence, I downloaded heroku-repo hoping to purge my cache on the Heroku app as such:
heroku repo:purge_cache -a https://ernestbikeberlin.herokuapp.com/
I also tried:
heroku repo:purge_cache -a http://ernestbikeberlin.herokuapp.com/
But what I got was:
Would be nice if someone could give a few pointers to solving this.
Cheers! :)
Ernest