Home > Backend Development > PHP Tutorial > Yeoman+grunt+php环境配置

Yeoman+grunt+php环境配置

WBOY
Release: 2016-06-06 20:42:37
Original
1096 people have browsed it

我用yeoman创建了angularjs项目,使用grunt serve进行预览调试,但是不支持php,我需要使用PHP作为restful后端服务,我在项目根目录创建了一个api文件夹,存放php端程序,怎么配置使得grunt serve支持php?

回复内容:

我用yeoman创建了angularjs项目,使用grunt serve进行预览调试,但是不支持php,我需要使用PHP作为restful后端服务,我在项目根目录创建了一个api文件夹,存放php端程序,怎么配置使得grunt serve支持php?

微博上看到的,点过来发现是8.13的提问了。其实这种开发模式,我建议前后端分开,PHP跑起来之后,前端项目用grunt-connect-proxy代理到PHP应用的API,这样两边 不会有什么影响

你让 php 一直跑着不就好了, grunt 只去监视前端的东西

Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template