w0bmircbot/boot.sh

12 lines
202 B
Bash
Raw Normal View History

2016-11-18 10:58:50 +00:00
#!/bin/bash
export NVM_DIR="/home/gz/.nvm"
[ -s "$NVM_DIR/nvm.sh" ] && . "$NVM_DIR/nvm.sh" # This loads nvm
2017-03-17 15:55:31 +00:00
nvm use default
2016-11-18 10:58:50 +00:00
while true; do
echo starting node... $(date)
node index.js
sleep 3
done