w0bmircbot/boot.sh
2017-03-17 16:55:31 +01:00

12 lines
202 B
Bash
Executable File

#!/bin/bash
export NVM_DIR="/home/gz/.nvm"
[ -s "$NVM_DIR/nvm.sh" ] && . "$NVM_DIR/nvm.sh" # This loads nvm
nvm use default
while true; do
echo starting node... $(date)
node index.js
sleep 3
done