This "Hello World" is a Cloud Run service that renders a webpage.
This sample demonstrates how to use the Cloud Code extension in VS Code.
- Open the command palette
- Run
Cloud Code: Deploy to Cloud Run
This sample demonstrates how to use the Cloud Code extension in IntelliJ.
- Enable Cloud Run support on your project.
In the Console, use the navigation menu to access
APIs and Services
>Dashboard
. Click on Cloud Run API within the list of available APIs and clickEnable API
. - Choose the automatically created run configuration,
Cloud Run: Deploy
from the Run/Debug configurations dialog on the top taskbar. - Click
Run
run action icon. This brings up theEdit configuration
window. - Set your Google Cloud project ID.
- Choose a region for your deployment platform.
- Click
Run
.
Configuration for this service uses environment variables.
PORT
[default:8080
] The service binds this port. To avoid conflicts, set explicitly this environment variable to an unused value.
- Read the Cloud Run documentation on developing your service.
- Follow the System packages tutorial to learn how to use the command-line to build and deploy a more complicated service.