nolim1t
4 years ago
No known key found for this signature in database
GPG Key ID: F6287B82CC84BCBD
1 changed files with
1 additions and
1 deletions
-
wait-for-node-manager.sh
|
|
@ -23,7 +23,7 @@ found=1 |
|
|
|
|
|
|
|
until [ $found = 2 ]; do |
|
|
|
if node -e "const axios = require('axios').default; axios.get('http://$host:3006/ping').then((resp) => {console.log(resp.data); process.exit(0); }).catch((error) => {process.exit(1) } );" ; then |
|
|
|
echo "Executed" |
|
|
|
echo "Can connect, lets proceed with server starting" |
|
|
|
found=2 |
|
|
|
else |
|
|
|
echo "Can't connect, keep trying" |
|
|
|