Google Cloud Run Middleware
Qwik City Cloud Run middleware allows you to run a Qwik City app on Google Cloud Run
Installation
To integrate the Cloud Run adapter, use the add command:
pnpm run qwik add cloud-runnpm run qwik add cloud-runyarn run qwik add cloud-runbun run qwik add cloud-runProduction deploy
To deploy your app, you need to:
-
Have a Google Cloud account
-
Install the
gcloudCLIIf you don't have gcloud, follow Google Cloud's official documentation.
-
Authenticate with the
gcloudCLITo authenticate the
gcloudCLI, run this command:gcloud auth loginGrant the SDK access to the account you created in step 1.
-
Change the name of the deploy script
Update the name of your Cloud Run app in the deploy script in your package.json.
"deploy": "gcloud run deploy my-cloud-run-app --source ." -
Run deploy script
Deploy to Google Cloud Run with:
pnpm run deploynpm run deployyarn run deploybun run deploy