Answer the question
In order to leave comments, you need to log in
Running grunt with crontab
Made automation of product updates on the site using grunt.
You can't run grunt if you're in a different directory.
Tell me what command to use.
Answer the question
In order to leave comments, you need to log in
Run from the cron not grunt directly, but a small shell script like:
cd /to/project/path
grunt update-goods
#!/usr/bin/node
var grunt = require('grunt');
// perform grunt tasks programatically
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question