Creare un servizio Cloud Run da un'applicazione di esempio in Cloud Code per Cloud Shell
Mantieni tutto organizzato con le raccolte
Salva e classifica i contenuti in base alle tue preferenze.
Cloud Code per Cloud Shell, integrato nell'editor Cloud Shell, include una raccolta di applicazioni di esempio per iniziare rapidamente.
Per creare un servizio Cloud Run utilizzando un esempio:
Apri la tavolozza dei comandi (premi Ctrl/Cmd+Shift+P o fai clic su Visualizza > Tavolozza comandi) e poi esegui il comando Cloud Code: New Application.
Seleziona Applicazione Cloud Run come tipo di esempio.
Seleziona il Sample per la lingua che stai utilizzando.
Scegli una posizione del servizio sul computer locale e premi Enter.
Cloud Code clona l'applicazione di esempio e apre il progetto appena creato per l'utilizzo.
[[["Facile da capire","easyToUnderstand","thumb-up"],["Il problema è stato risolto","solvedMyProblem","thumb-up"],["Altra","otherUp","thumb-up"]],[["Difficile da capire","hardToUnderstand","thumb-down"],["Informazioni o codice di esempio errati","incorrectInformationOrSampleCode","thumb-down"],["Mancano le informazioni o gli esempi di cui ho bisogno","missingTheInformationSamplesINeed","thumb-down"],["Problema di traduzione","translationIssue","thumb-down"],["Altra","otherDown","thumb-down"]],["Ultimo aggiornamento 2025-09-08 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."]]