I’m using Github pages to host my middleman server. It is working great!
I’m running into a problem, however. I’ve added a CNAME for my site, which on Github means that a CNAME
file is created by Github in the root of the HTML structure.
When I run bundle exec middleman build
the site builds, however, the CNAME
file Github had added gets deleted.
$ bundle exec middleman build
...
create build/index.html
remove build/CNAME
How can I configure middleman to ignore this file and not delete it? Right now I just reset the file every time I commit… which is very error prone.