1

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?

sonicboom
  • 223
  • 1
  • 2
  • 6

1 Answers1

2

I had to set the path to grunt -

*/1 * * * * cd /root/dev/myapp && /usr/bin/local/grunt serve
sonicboom
  • 223
  • 1
  • 2
  • 6