GoogleCloudPlatform / google-cloud-gemserver

CLI to deploy a private gem server to Google App Engine Flex
Apache License 2.0
46 stars 14 forks source link

Verify server accessibility after GAE deployment #18

Closed hxiong388 closed 7 years ago

hxiong388 commented 7 years ago

GAE deployment is flaky and service may not be accessible right after deployment. When I ran google-cloud-gemserver create, it creates a key for me right after deployment, but the key looks like this:

$ cat ~/.gem/credentials
:master-gemserver-key:  Server Error</h1>
<h2>The server encountered a temporary error and could not complete your request.<p>Please try again in 30 seconds.</h2>
<h2></h2>
</body></html>

The gem should

  1. Verify GAE deployment is accessible before proceeding with other commands.
  2. Verify key is valid before setting it into ~/.gem/credentials file.
dazuma commented 7 years ago

You might consider verifying several times over some short length of time (maybe 10-20 seconds) to see if it comes alive in that time, before giving up.