Membuat layanan Cloud Run dari aplikasi contoh di Cloud Code untuk Cloud Shell
Tetap teratur dengan koleksi
Simpan dan kategorikan konten berdasarkan preferensi Anda.
Cloud Code untuk Cloud Shell yang terintegrasi dengan Cloud Shell Editor, dilengkapi dengan kumpulan aplikasi contoh untuk membantu Anda memulai dengan cepat.
Untuk membuat layanan Cloud Run menggunakan contoh:
Buka palet perintah
(tekan Ctrl/Cmd+Shift+P atau klik View > Command Palette), lalu jalankan perintah Cloud Code: New Application.
Pilih Aplikasi Cloud Run sebagai jenis sampel.
Pilih sampel untuk bahasa yang Anda gunakan.
Pilih lokasi layanan di komputer lokal Anda, lalu tekan Enter.
Cloud Code akan meng-clone aplikasi contoh dan membuka project yang baru dibuat untuk digunakan.
[[["Mudah dipahami","easyToUnderstand","thumb-up"],["Memecahkan masalah saya","solvedMyProblem","thumb-up"],["Lainnya","otherUp","thumb-up"]],[["Sulit dipahami","hardToUnderstand","thumb-down"],["Informasi atau kode contoh salah","incorrectInformationOrSampleCode","thumb-down"],["Informasi/contoh yang saya butuhkan tidak ada","missingTheInformationSamplesINeed","thumb-down"],["Masalah terjemahan","translationIssue","thumb-down"],["Lainnya","otherDown","thumb-down"]],["Terakhir diperbarui pada 2025-08-11 UTC."],[[["\u003cp\u003eCloud Code for Cloud Shell, integrated into the Cloud Shell Editor, offers sample applications to facilitate quick project starts.\u003c/p\u003e\n"],["\u003cp\u003eYou can create a Cloud Run service by using the "Cloud Code: New Application" command in the command palette.\u003c/p\u003e\n"],["\u003cp\u003eCreating a Cloud Run service involves selecting "Cloud Run application" and then choosing your desired sample language.\u003c/p\u003e\n"],["\u003cp\u003eAfter selecting a service location, Cloud Code clones the sample application and opens the project for you.\u003c/p\u003e\n"]]],[],null,["# Create a Cloud Run service from a sample application in Cloud Code for Cloud Shell\n\nCloud Code for Cloud Shell which is built into [Cloud Shell Editor](https://ide.cloud.google.com), comes with a collection of sample applications to get you started quickly.\n\n\u003cbr /\u003e\n\nTo create a Cloud Run service using a sample:\n\n1. Open the command palette\n (press `Ctrl`/`Cmd`+`Shift`+`P` or click **View** \\\u003e **Command Palette** ) and\n then run the **Cloud Code: New Application** command.\n\n2. Select **Cloud Run application** as the type of sample.\n\n3. Select the sample for the language you're using.\n\n4. Choose a service location on your local machine and then press `Enter`.\n\n Cloud Code clones the sample application and opens your\n newly-created project for use."]]