Seit dem 17. Juni 2024 ist Cloud Source Repositories für Neukunden nicht mehr verfügbar. Wenn Ihre Organisation noch nicht Cloud Source Repositories verwendet hat, können Sie die API nicht aktivieren oder Cloud Source Repositories verwenden. Für neue Projekte, die nicht mit einer Organisation verbunden sind, kann die Cloud Source Repositories API nicht aktiviert werden. Organisationen, die Cloud Source Repositories vor dem 17. Juni 2024 verwendet haben, sind von dieser Änderung nicht betroffen.
Code aus Cloud Source Repositories in App Engine bereitstellen
Mit Sammlungen den Überblick behalten
Sie können Inhalte basierend auf Ihren Einstellungen speichern und kategorisieren.
In diesem Thema wird beschrieben, wie Sie Cloud Source Repositories in App Engine einbinden.
App Engine ist ein Web-Framework und eine Cloud-Computing-Plattform zum Entwickeln und Hosten von Webanwendungen mithilfe der Google Cloud.
Sie können Ihren Code aus Cloud Source Repositories in App Engine auf die gleiche Weise bereitstellen wie aus lokalen Dateien. Anhand der Schritte in diesem Thema wird gezeigt, wie Sie dabei vorgehen.
Repository klonen
Falls Sie dies noch nicht getan haben, klonen Sie den Inhalt des Google Cloud-Repositorys mithilfe des Befehls gcloud source repos clone in ein lokales Git-Repository:
gcloud source repos clone hello-world
Anwendung bereitstellen
Wechseln Sie in einem Terminalfenster zu Ihrem Repository. Ersetzen Sie im folgenden Befehl path_to_repository durch den Pfad zum Repository, das Ihre Anwendung enthält.
cdpath_to_repository
Stellen Sie die Anwendung bereit:
gcloud app deploy app.yaml
Befolgen Sie die Eingabeaufforderungen zum Bereitstellen und Testen Ihrer Anwendung.
Führen Sie den Befehl gcloud app deploy app.yaml noch einmal aus, um neue Änderungen zu übernehmen, wenn Sie beispielsweise mit einer Push-Übertragung eine Aktualisierung an Ihrem Repository vorgenommen haben.
[[["Leicht verständlich","easyToUnderstand","thumb-up"],["Mein Problem wurde gelöst","solvedMyProblem","thumb-up"],["Sonstiges","otherUp","thumb-up"]],[["Schwer verständlich","hardToUnderstand","thumb-down"],["Informationen oder Beispielcode falsch","incorrectInformationOrSampleCode","thumb-down"],["Benötigte Informationen/Beispiele nicht gefunden","missingTheInformationSamplesINeed","thumb-down"],["Problem mit der Übersetzung","translationIssue","thumb-down"],["Sonstiges","otherDown","thumb-down"]],["Zuletzt aktualisiert: 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"]]