corrected deploy script. fixed slow work

This commit is contained in:
MaximZaitsev
2016-08-16 19:16:52 +03:00
parent 8e079033a1
commit 0a2fd84002
+8 -6
View File
@@ -47,6 +47,7 @@ if {$host==""} {
exit 1
}
set timeout 3
spawn ./gradlew build
expect eof
@@ -62,14 +63,15 @@ expect "password:"
send "$password\r"
expect "%"
send "killall -9 node"
expect "%"
send "killall -9 node \r"
expect " $"
send "cd server \r"
expect "%"
expect " $"
set timeout 120
send "npm install \r"
expect "%"
expect " $"
send "node main.js &\r"
expect "%"
expect " $"
send "exit\r"
expect eof