I have a symfony route that would handle the following url http://localhost:8000/myaction/generated.txt
gulp's server won't handle it and returns
Cannot GET /myaction/generated.txt
Seems to be related to the same issue I had with generator-grunt-symfony Where it would route .json requests
bezoerb/generator-grunt-symfony#205 (comment)
I'm looking into it, not as familiar as I was with grunt... any pointers?
UPDATE:
Culprit is clearly
|
if (!/\.\w{2,}$/.test(obj.pathname) || /\.php/.test(obj.pathname)) { |
The solution I had used was to give php-proxy-middleware everything but browsersync and then modify app_dev.php to route based on whether a real file existed, similar to a lot of mod_rewrite rules.
I have a symfony route that would handle the following url http://localhost:8000/myaction/generated.txt
gulp's server won't handle it and returns
Cannot GET /myaction/generated.txt
Seems to be related to the same issue I had with generator-grunt-symfony Where it would route .json requests
bezoerb/generator-grunt-symfony#205 (comment)
I'm looking into it, not as familiar as I was with grunt... any pointers?
UPDATE:
Culprit is clearly
generator-sf/generators/buildtool/gulp/templates/gulp/helper/utils.js
Line 31 in 37ac37a
The solution I had used was to give php-proxy-middleware everything but browsersync and then modify app_dev.php to route based on whether a real file existed, similar to a lot of mod_rewrite rules.