heroku-repo | Plugin for heroku CLI that can manipulate the repo | Platform As A Service library
kandi X-RAY | heroku-repo Summary
kandi X-RAY | heroku-repo Summary
This plugin adds some commands to the heroku gem to interact with the app's repo.
Support
Quality
Security
License
Reuse
Top functions reviewed by kandi - BETA
Currently covering the most popular Java, JavaScript and Python libraries. See a Sample of heroku-repo
heroku-repo Key Features
heroku-repo Examples and Code Snippets
$ pip install django-storages
$ pip install boto
#Storage on S3 settings are stored as os.environs to keep settings.py clean
if not DEBUG:
AWS_STORAGE_BUCKET_NAME = os.environ['AWS_STORAGE_BUCKET_NAME']
AWS_ACCESS_KEY_ID = os.environ['AWS_ACC
Community Discussions
Trending Discussions on heroku-repo
QUESTION
First thing I should mention is that I'm NOT using Rails. I don't have a rake assets:precompile
task (tried it anyway, didn't work). I don't have a public/assets
folder either (tried git rm -r public/assets
anyway, also didn't work).
For a long time, I was using Dropbox to deploy to Heroku (I'm quite the newbie to code) - I was planning on moving to git in about a month or so. But given this issue, I made the move today and tried pushing through git - also didn't work. i.e. I did a git pull
, settled all the conflicts and then did git push
. Still nothing.
Basically, Heroku isn't loading any of my new CSS and JS. It detects the files just fine. Running git push
now says everything is up-to-date, running git status
says there is nothing to commit. But using Chrome's inspect tool, the JS and CSS files don't have the new code I wrote.
I also tried adding the gem rack-flash-session
to my Gemfile and requiring 'rack/flash/test'
in my application_controller - this actually crashed the whole app and I removed it.
I also tried installing the heroku-repo
plugin and running heroku repo:purge_cache --app my-app-name
but that also didn't work
Running the code locally, everything works fine. It's just the online version that's failing.
I updated the Heroku CLI just before trying any of this and (you guessed it!), also didn't work.
I don't know what other info you'd need, so let me know in the comments and I'll be happy to provide them :)
Any help is appreciated!
...ANSWER
Answered 2017-Aug-21 at 04:58Refresh the page with control + shift + r. This will clear the client-side assets cache and get the newly updated ones. You could also look for a gem that does cache-busting "asset fingerprinting" - this is a unique string that's appended to the asset files which prevents browsers from using a stale copy. I searched a little but I can't definitively point you to something that works with sinatra. Maybe you'll be able to find a gem that works though.
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install heroku-repo
Support
Reuse Trending Solutions
Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items
Find more librariesStay Updated
Subscribe to our newsletter for trending solutions and developer bootcamps
Share this Page