1
我以grunt開頭。 我想從CLI執行幾個php文件。從cli中運行php的grunt-shell任務未找到
所以我安裝了咕嚕殼與 npm install --save-dev grunt-shell
現在我有這個gruntfile:
module.exports = function(grunt) {
grunt.initConfig({
shell: {
php: {
multiple: {
command: [
'php -f /home/leandro/oskar.php',
'php -f /home/leandro/oskar2.php'
].join('&')
}
}
}
});
grunt.registerTask('default', ['shell:php']);
};
我試圖調用任務的所有組合,但輸出始終是:
Warning: Task "shell:php" not found. Use --force to continue. Aborted due to warnings.