Yeoman and php files?

Is there any way to configure Yeoman (latest version: v0.9.6) to serve php files?

I found this http://fgnass.github.com/2012/08/30/yeoman.html but couldn't get it working.

Installed https://github.com/fgnass/gateway , https://github.com/fgnass/tamper and made the necessary updates for Yeoman, as shown here: https://github.com/fgnass/yeoman/commit/39faa07375ee49d56bd50d334dcfd6b5a4e96292 .

All I got is a browser that loads every php file, not its rendering.

Any help is much appreciated!

EDIT:

Yeoman 1.0 is running. I have not tried using php with it yet, but still would like to know if this is possible.

+7
source share
2 answers

I just wrote a blog post Using Yeoman 1.0beta3 with PHP . It seems that http://fgnass.github.com/2012/08/30/yeoman.html is not updating for yeoman 1.0.

My code is available on Github . You can view git commit for the whole set of changes needed to work with php files.

I am currently updating only for connect / livereload tasks. I am working on updating it for build, usemin, and other tasks.

UPDATE: 1

There seems to be an easy workaround with grunt-php .
I have not used it, but updated after using it.

Thanks,
Revath

+3
source

I may be wrong, but your problem seems more like a web server problem. You need to make sure that the web server is processing files, not serving them. If you use vhost to map your server to this , this can be a pleasure to read. Please tell me if this is your problem.

0
source

All Articles