I have the following command that I can run from any folder and it will start my (Angularjs) webapp by using the grunt task runner tool -
cd /root/dev/myapp && grunt serve
However when I put it in cron it doesn't work -
*/1 * * * * cd /root/dev/myapp && grunt serve
Any ideas on why it is not working?
/root/dev/myapp/grunt serve
depends on what "grunt" is exactly. You may need to put it in a more standard location such as /usr/local – Panther Apr 02 '15 at 14:09