the only change in directory I’ve made is the one in manifest.json so that I can use browsersync: "config": { "devUrl": "http://localhost/roots" }
I added WP_ENV in wp-config.php since it seems to be required: define('WP_ENV', 'development');
when I visit: http://localhost/roots/?show_sitemap I get a sitemap in json: [ "http://localhost/roots/index.php/2015/11/17/hej-varlden/", "http://localhost/roots/index.php/exempelsida/" ]
Doing gulp --production works fine having line 105-109 commented out in gulpfile.js.
I would really appreciate it if someone could help getting me on the right track here. Thanks!
I just tried with a fresh copy and I get the same error. Maybe I am missing something in the installation process?
I already have gulp & bower globally installed and this is what I did (using OS X)
1, Installed a fresh copy of Wp 4.3.1 and connected it to a localhost db in MAMP environment.
2, Cloned sage/roots github repo into a theme and activated it.
3, Added define(‘WP_ENV’, ‘development’); to wp-config in the root folder.
5, changed the “config” section in manifest.json to “devUrl”: "http://localhost/roots"
4, npm install in the themes folder
5, bower install in the themes folder
After that, running gulp or gulp --production worked fine. But when I did the steps @cfx provided, I got the same end result as previously. What am I missing?
I had same problem. But when I changed sitemap function to this one:
and set launchctl limit maxfiles 65536 65536 and ulimit -n 4096
then uncomment lines 105-109 in gulpfile.js,
run gulp --production
next comment those lines run gulp --production again,
the problem solved, everything works fine.