Yesterday worked like a charm, today not. For some reason the app doesn't find bower components anymore. If I change my php file back to html and then Grunftile back to original, it all works.
This leaves me wondering: this can't be the easiest way to develop with php on 2015?
EDIT:
I also get "connect: res.headerSent: use standard res.headersSent" when I run grunt serve
EDIT EDIT:
Oh, I'm so incredibly noob. I 'm pretty new with this stuff so most of the time I just copy/paste the rows to various places not really understanding the process. I didn't realise that I'm not supposed to replace "connect.livereload.options.middleware" with
Yesterday worked like a charm, today not. For some reason the app doesn't find bower components anymore. If I change my php file back to html and then Grunftile back to original, it all works.
This leaves me wondering: this can't be the easiest way to develop with php on 2015?
EDIT:
I also get "connect: res.headerSent: use standard res.headersSent" when I run grunt serve
EDIT EDIT:
Oh, I'm so incredibly noob. I 'm pretty new with this stuff so most of the time I just copy/paste the rows to various places not really understanding the process. I didn't realise that I'm not supposed to replace "connect.livereload.options.middleware" with
return [
lrSnippet,
gateway(__dirname + '/app', {
'.php': 'php-cgi'
}),
mountFolder(connect, '.tmp'),
mountFolder(connect, 'app')
];
but leave the lines
connect.static('.tmp'),
connect().use('/bowercomponents', connect.static('./bowercomponents')),
connect.static(config.app),
there.
Now it works again. However, there is a weird behavior: the browser downloads index.php on every livereload.
Any ideas?