After settings up a new project for a quick static build using CodeKit 2, I noticed
some strange (and buggy) behaviour an interesting feature.
It appears that when previewing a project through CodeKit 2’s preview, it replaces all instances of the hostname specified in the project’s “External Server Address” with the preview URL.
In my case, I’d set up my host in MAMP Pro as “GWAC”, pointing to this in CodeKit 2’s
“External Server Address”
Wherever the string “GWAC” appears in my files, it is replaced with CodeKit’s preview URL. ie:
This is expected behaviour. Makes sense:
@FraserHartDev That’s how links are changed to keep pointing at CodeKit’s proxy server instead of your origin server (MAMP)
— Bryan Jones (@bdkjones) September 9, 2014