Hello then I state that something very strange happens to me, which had never happened to me. So I have a node.js application that runs perfectly on a centos server! Once the application has been loaded on the server, boot with node server.js and everything is working on perfection! As a reboot I set a cron to start the server node with this syntax:
**@reboot node /var/www/html/app/main.js**
the problem is that when I restart the machine the cron starts correctly node.js but when I have to do the change of directory below I have this error:
Node.js Code:
process.chdir('./Model');
Directory Tree:
/var/www/html/app
/var/www/html/app/main.js
/var/www/html/app/Model
Error: ENOENT: no such file or directory, uv_chdir