Closed ysdede closed 7 years ago
server.service
is just a tmux
wrapper that "manually" runs ./run-ls server.ls
. Thus, if manually running server.ls
works but server.service
fails, it just looks impossible at the first glance.
Can you run echo $NODE_PATH
in the tmux terminal where express
fails and post the output?
yunus@yubuntu:~/Desktop/myproject/webserver$ echo $NODE_PATH
/home/yunus/Desktop/myproject/scada.js/node_modules:/home/yunus/Desktop/myproject/scada.js/src/lib:
I got import errors while trying to run server:
$ ./server.service
It works succesfully with sudo:
$ sudo ./server.service
It's also OK with running manually: