corrected deploy script. fixed slow work
This commit is contained in:
@@ -47,6 +47,7 @@ if {$host==""} {
|
|||||||
exit 1
|
exit 1
|
||||||
}
|
}
|
||||||
|
|
||||||
|
set timeout 3
|
||||||
|
|
||||||
spawn ./gradlew build
|
spawn ./gradlew build
|
||||||
expect eof
|
expect eof
|
||||||
@@ -62,14 +63,15 @@ expect "password:"
|
|||||||
send "$password\r"
|
send "$password\r"
|
||||||
|
|
||||||
expect "%"
|
expect "%"
|
||||||
send "killall -9 node"
|
send "killall -9 node \r"
|
||||||
|
expect " $"
|
||||||
expect "%"
|
|
||||||
send "cd server \r"
|
send "cd server \r"
|
||||||
expect "%"
|
expect " $"
|
||||||
|
set timeout 120
|
||||||
send "npm install \r"
|
send "npm install \r"
|
||||||
expect "%"
|
expect " $"
|
||||||
send "node main.js &\r"
|
send "node main.js &\r"
|
||||||
expect "%"
|
expect " $"
|
||||||
|
|
||||||
send "exit\r"
|
send "exit\r"
|
||||||
expect eof
|
expect eof
|
||||||
|
|||||||
Reference in New Issue
Block a user