1
Я начинаю с grunt. Я хотел бы выполнить несколько php-файлов из CLI.Задача grunt-shell для запуска php от cli не найден
Так я установил хрюкать-оболочка с 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.