FAQ
- If you experience a cross domain cdn issue with your fonts add this i .htaccess after # END WordPress
# END WordPress
<FilesMatch ".(eot|ttf|otf|woff)">
Header set Access-Control-Allow-Origin "*"
</FilesMatch>
- I get an error when running
gulp setup
If you are running in a Vagrant Scotchbox virtual environment (https://box.scotch.io/), npm install
may be interrupted before it is finished. If this happens you will only see a output of "Killed" in the terminal window. If you try to run the next command, the "gulp setup" you will see a LOT of errors stating "Error: Cannot find module 'name-of-module'". This happens because the Vagrant virtual environment is set up only with 489Mb of memory, and runs without a swap-file. The npm install
command crashes because it runs out of memory, with only a single output of “Killed” in the terminal window. To fix this, follow the instructions on "https://www.digitalocean.com/community/tutorials/how-to-add-swap-on-ubuntu-14-04” to set up a swap-file for your Vagrant Ubuntu server. (See https://www.digitalocean.com/community/questions/npm-gets-killed-no-matter-what for a description of the problem)