Yeoman + grunt + php environment Configuration

Source: Internet
Author: User
I created an angularjs project using yeoman and used gruntserve for preview debugging. However, php is not supported. I need to use PHP as a restful backend service. I created an api folder in the project root directory, how can I configure gruntserve to store php programs? I created an angularjs project using yeoman and used grunt serve for preview debugging. However, php is not supported. I need to use PHP as a restful backend service. I created an api folder in the project root directory, how can I configure grunt serve to store php programs?

Reply content:

I created an angularjs project using yeoman and used grunt serve for preview debugging. However, php is not supported. I need to use PHP as a restful backend service. I created an api folder in the project root directory, how can I configure grunt serve to store php programs?

As you can see on Weibo, you can click here to find that the question is 8.13. In fact, in this development mode, I suggest separating the frontend and backend. After PHP starts running, the front-end project uses grunt-connect-proxy to proxy the API to the PHP application, so that there will be no impact on both sides.

It's okay if you keep running php. grunt only monitors the front-end stuff.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.