从php exec函数运行GruntJs任务
我想通过从php exec函数运行命令来执行一些grunt任务 我已经:从php exec函数运行GruntJs任务,php,windows,gruntjs,wamp,Php,Windows,Gruntjs,Wamp,我想通过从php exec函数运行命令来执行一些grunt任务 我已经: 全局安装grunt:npm-g安装grunt cli 设置apache和windows以允许从php运行CLI(我使用 wampserver) 我从php运行了以下脚本: <?php exec('grunt --gruntfile Gruntfile.js');` gruntTask.bat包含: grunt --gruntfile Gruntfile.js 但是为什么它不能执行这个脚本呢?我错过什么了吗 需
- 全局安装grunt:
npm-g安装grunt cli
- 设置apache和windows以允许从php运行CLI(我使用 wampserver)
<?php
exec('grunt --gruntfile Gruntfile.js');`
gruntTask.bat包含:
grunt --gruntfile Gruntfile.js
但是为什么它不能执行这个脚本呢?我错过什么了吗
需要帮助的人
问候,
grunt --gruntfile Gruntfile.js