This isnt working for me
i set up pm2 with a startup script which looks like this
cd ~/MagicMirror
export MM_CONFIG=/mnt/magicmirror/config.js
DISPLAY=:0 npm start
I’ve verified that the config.js is present at that folder location. when I start with pm2 i get the screen that says
“Please create a config file or check the existing one for errors”
to test if it was permissions error on the /mnt directory files. I copied the config to ~/mmconfig and edited the script to read
...
export MM_CONFIG=/home/egzachly/mmconfig/config.js
...
And I get the same error message.
I then confirmed that there is not an error with the config.js by copying it to ~/MagicMirror/config/config.js and starting with
npm start
And it runs flawlessly. Unfortunately, running it from there is not what I want to do. Is there a syntax error in my pm2 shell script?