Commit 1ef5870c authored by kalvin's avatar kalvin

fixbugs

parent 382a2995
...@@ -46,10 +46,6 @@ do ...@@ -46,10 +46,6 @@ do
echo "log is exist!" echo "log is exist!"
log_exist=1 log_exist=1
rm -rf ./logs/error.log rm -rf ./logs/error.log
sleep 1
echo "frontail ./logs/*log -n 500 -d "
frontail ./logs/*log -n 500 -d
else else
touch ./logs/error.log touch ./logs/error.log
echo "[${count}]Log is not exist or java server start error." >> ./logs/error.log echo "[${count}]Log is not exist or java server start error." >> ./logs/error.log
...@@ -63,5 +59,8 @@ cd /home/qg-xterm/;git pull;cd - ...@@ -63,5 +59,8 @@ cd /home/qg-xterm/;git pull;cd -
echo "node /home/qg-xterm/demo/app.js" echo "node /home/qg-xterm/demo/app.js"
nohup node /home/qg-xterm/demo/app.js & nohup node /home/qg-xterm/demo/app.js &
echo "tail -f ./logs/*log" echo "frontail ./logs/*log -n 500 -d "
tail -f ./logs/*log frontail ./logs/*log -n 500
\ No newline at end of file
# echo "tail -f ./logs/*log"
# tail -f ./logs/*log
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment