ralyodio / node-startup

Startup script for Linux-based systems for running node app when rebooting using an /etc/init.d script.
MIT License
779 stars 169 forks source link

Fixes issue where modules wouldn't load #23

Closed azariah001 closed 9 years ago

azariah001 commented 9 years ago

Without this option, even though the config_dir is parsed in the run command, modules will fail to load because they cannot be found, presumably because node is looking in the OS root instead of the actual folder. CD'ing into the directory before executing fixes the problem, at least for me. Now I'm a happy camper. :)