Skip to content

Instantly share code, notes, and snippets.



Created Jun 29, 2020
What would you like to do?
Vapor Cloud Run
# Set project to current project in gcloud
PROJECT=$(gcloud config list --format 'value(core.project)' 2>/dev/null)
# Build the container using Cloud Build, giving plenty of time for the `swift build` step
gcloud builds submit --tag$PROJECT/vapor --timeout="20m"
# Run the container
gcloud run deploy vapor --image$GCP_PROJECT/vapor --platform managed --allow-unauthenticated
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.