aboutsummaryrefslogtreecommitdiff
path: root/bin/luxcena-neo.sh
blob: 6a0be313e2486c8801cb575c14169d7b5cc7a5aa (plain) (blame)
1
2
3
4
5
6
7
8
9
#!/bin/bash

# We want to eventually run the server as another user than root. But right now,
# the python script needs to be run as root, and since the server is starting them
# the server needs root as well.

#runuser -l pi -c "export NODE_ENV=production; node ~/luxcena-neo-install/src/app.js"
export NODE_ENV=production
node /home/lux-neo/install/src/app.js >> /home/lux-neo/install/logs/service.log