w0bmircbot/boot.sh

12 lines
199 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 node
while true; do
echo starting node... $(date)
node index.js
sleep 3
done