12 lines
202 B
Bash
Executable File
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
|