Skip to content

Commit

Permalink
[SHIBUI-1317]
Browse files Browse the repository at this point in the history
WIP
  • Loading branch information
jj committed Jun 11, 2019
1 parent f862146 commit 5f3aa4a
Showing 1 changed file with 10 additions and 8 deletions.
18 changes: 10 additions & 8 deletions backend/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -316,14 +316,16 @@ dockerRun {
clean true
}

task runChecker << {
def ready = false
while (!ready) {
try {
ready = 'http://localhost:10101'.toURL().text.length() > 0
} catch (IOException e) {
println 'cannot reach site'
sleep 5000
task runChecker {
doLast {
def ready = false
while (!ready) {
try {
ready = 'http://localhost:10101'.toURL().text.length() > 0
} catch (IOException e) {
println 'cannot reach site'
sleep 5000
}
}
}
}
Expand Down

0 comments on commit 5f3aa4a

Please sign in to comment.