swift-server / guides

Guides for building, debugging and deploying Swift Server applications
258 stars 21 forks source link

docs: add gcp deployment guide #72

Closed PatrickHeneise closed 2 years ago

PatrickHeneise commented 2 years ago

Closes #55

Tested this with a simple Hummingbird server (https://github.com/zentered/swift-hummingbird-demo), everything works as described. Screenshots attached as well.

PatrickHeneise commented 2 years ago

@fabianfett Thanks for the review. Addressed all the issues.

PatrickHeneise commented 2 years ago

Wow, thanks a lot for the review! Sorry you got stuck, I tried this several times and it worked :/ I'll check about the error.

As for , etc. I hardcoded the values for simplicity; I'll replace those with build substitution variables, that'll be easier.

PatrickHeneise commented 2 years ago

@0xTim I forgot the Cloud Build settings. Added a screenshot and description in the article. Go to "Settings" in the Cloud Build overview, then Enable the permissions for "Cloud Run". This should give Cloud Build the necessary permission to deploy your service.