Today I noticed that pushState and replaceState cause the reload button and favicon to flicker although no page load (or reload) has occurred.
This bug in Chrome was first reported in July 2010 but still exists in the latest version for OS X. The reload button/throbber doesn’t flicker in Chrome for iOS but the favicon changes to the default (greyscale globe).
I’ve created a demo on JS Bin that reproduces the conditions to observe this behaviour, and a brief (silent) screencast that displays the behaviour. View in 1080p to see exactly what is going on.
wercker doesn’t currently have provide a feature to ignore files when deploying.
As I deploy to Heroku using a git push I can use a .gitignore file to ignore files when deploying from wercker.
I have two ignore files, .gitignore is for my app repository, and .deploy.gitignore is for ignoring files during the deploy stage.
As part of my build I overwrite .gitignore with .deploy.gitignore. When wercker creates the deploy repository it ignores any files that match the rules in the ignore file.
/pipeline/build is where wercker puts your code so we have to cd there as the default working directory is $HOME.
And that’s it. Don’t want any .pyc files being pushed to your deployment platform, add *.pyc to your .deploy.gitignore. Add as many rules as you see fit.
The wercker/python box does not have a LESS compiler available. To install lessc you must first install npm but when I tried to execute curl http://npmjs.org/install.sh | sh on wercker the script reported some errors (which I didn’t record and now can’t reproduce).
Use the following script to install lessc on wercker: