A partire dal 17 giugno 2024, Cloud Source Repositories non è disponibile per i nuovi clienti. Se la tua organizzazione non ha mai utilizzato Cloud Source Repositories, non puoi attivare l'API o utilizzare Cloud Source Repositories. I nuovi progetti non collegati a un'organizzazione non possono attivare l'API Cloud Source Repositories. Questa modifica non interessa le organizzazioni che hanno utilizzato Cloud Source Repositories prima del 17 giugno 2024.
Deployment da Cloud Source Repositories ad App Engine
Mantieni tutto organizzato con le raccolte
Salva e classifica i contenuti in base alle tue preferenze.
Questo argomento descrive come integrare Cloud Source Repositories con App Engine.
App Engine è un framework web e una piattaforma di cloud computing per lo sviluppo e l'hosting di app web utilizzando Google Cloud.
Puoi eseguire il deployment del codice da Cloud Source Repositories ad App Engine
come faresti con i file locali. I passaggi descritti in questo argomento ti mostrano come.
Clonare un repository
Se non l'hai ancora fatto, clona i contenuti del Google Cloud
repository in un repository Git locale utilizzando il comando gcloud source repos clone:
gcloud source repos clone hello-world
esegui il deployment dell'app
Da una finestra del terminale, vai al tuo repository. Nel comando seguente, sostituisci path_to_repository con il percorso del repository che contiene la tua applicazione.
cdpath_to_repository
Esegui il deployment dell'app:
gcloud app deploy app.yaml
Segui le istruzioni per eseguire il deployment e il test dell'app.
Per rilevare le nuove modifiche, ad esempio quando invii un aggiornamento al
repository, esegui di nuovo il comando gcloud app deploy app.yaml.
[[["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-04 UTC."],[],[],null,["# Deploying from Cloud Source Repositories to App Engine\n\nThis topic describes how to integrate Cloud Source Repositories with App Engine.\n\nApp Engine is a web framework and cloud computing platform for\ndeveloping and hosting web apps by using the Google Cloud.\n\nYou can deploy your code from Cloud Source Repositories to App Engine\nin the same way you would using a local files. The steps in this topic show\nyou how.\n| **Note:** you must [create a repository](/source-repositories/docs/creating-an-empty-repository) and create code for a deployable app before deploying to App Engine.\n\nClone a repository\n------------------\n\nIf you have not already done so, clone the contents of the Google Cloud\nrepository into a local Git repository by using the `gcloud source repos clone`\ncommand: \n\n gcloud source repos clone hello-world\n\nDeploy your app\n---------------\n\n1. From a terminal window, navigate to your repository. In the following\n command, replace \u003cvar translate=\"no\"\u003epath_to_repository\u003c/var\u003e with the path to the\n repository that contains your application.\n\n ```bash\n cd path_to_repository\n ```\n2. Deploy your app:\n\n gcloud app deploy app.yaml\n\n Follow the prompts to deploy and test your app.\n\n To pick up new changes, such as when you push an update into your\n repository, re-run the `gcloud app deploy app.yaml` command.\n3. Verify that your app is running:\n\n gcloud app browse"]]