Mit Sammlungen den Überblick behalten
Sie können Inhalte basierend auf Ihren Einstellungen speichern und kategorisieren.
Eine App Engine-Anwendung wird mithilfe der Datei app.yaml konfiguriert. Diese enthält Einstellungen für Laufzeit, Handler und Skalierung sowie andere allgemeine Einstellungen einschließlich Umgebungsvariablen.
app.yaml-Dateien
Sie können die Laufzeitkonfiguration für Ihre Ruby-Anwendung, einschließlich Versionen und URLs, in der Datei app.yaml angeben. Diese Datei dient als Deployment-Deskriptor für eine bestimmte Dienstversion.
Erstellen Sie zuerst die Datei app.yaml für den Dienst default Ihrer Anwendung. Erst dann können Sie app.yaml-Dateien für zusätzliche Dienste erstellen und bereitstellen.
Bei einer einfachen Ruby-Anwendung in der Standardumgebung muss die Datei app.yaml üblicherweise nur das Element runtime enthalten. Beispiel:
runtime:ruby34
App Engine bietet Standardwerte für alle anderen Einstellungen, einschließlich der F1-Instanzklasse, die die Speicher- und CPU-Ressourcen bestimmt, die für Ihre Anwendung verfügbar sind, und der automatischen Skalierung, die steuert wie und wann neue Instanzen Ihrer Anwendung erstellt werden.
Wenn Sie die Standardeinstellungen überschreiben müssen, erstellen Sie eine app.yaml-Datei und geben Sie die gewünschten Einstellungen an. Weitere Informationen finden Sie in der app.yaml-Dateireferenz.
Sie können Dateien des Typs app.yaml jeweils eindeutige Namen geben, müssen diese Dateinamen dann aber auch im Bereitstellungsbefehl angeben. Wenn Sie beispielsweise Ihre app.yaml-Datei service-name-app.yaml oder app.standard.yaml benennen, müssen Sie Ihre Anwendung so bereitstellen:
[[["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)."],[[["\u003cp\u003eThe \u003ccode\u003eapp.yaml\u003c/code\u003e file is essential for configuring an App Engine app, defining runtime, handlers, scaling, and other settings, including environment variables.\u003c/p\u003e\n"],["\u003cp\u003eA \u003ccode\u003edefault\u003c/code\u003e service's \u003ccode\u003eapp.yaml\u003c/code\u003e file must be created before creating and deploying \u003ccode\u003eapp.yaml\u003c/code\u003e files for additional services.\u003c/p\u003e\n"],["\u003cp\u003eA basic Ruby app in the standard environment typically only requires the \u003ccode\u003eruntime\u003c/code\u003e element in its \u003ccode\u003eapp.yaml\u003c/code\u003e file, as App Engine provides defaults for other settings like instance class and scaling.\u003c/p\u003e\n"],["\u003cp\u003eYou can customize your \u003ccode\u003eapp.yaml\u003c/code\u003e filename, but you must then use the specific filename when deploying the app with the \u003ccode\u003egcloud app deploy\u003c/code\u003e command.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003eapp.yaml\u003c/code\u003e file reference has a complete list of all supported elements.\u003c/p\u003e\n"]]],[],null,["# Defining runtime settings\n\n\u003cbr /\u003e\n\n\u003cbr /\u003e\n\n\nAn App Engine app is configured using an `app.yaml`\nfile, that contains the runtime, handlers, scaling, and other general settings\nincluding environment variables.\n\n\nAbout `app.yaml` files\n----------------------\n\n\u003cbr /\u003e\n\nYou can specify the runtime configuration for your Ruby app, including versions and URLs, in the `app.yaml` file. This file acts as a deployment descriptor of a specific [service](/appengine/docs/standard/an-overview-of-app-engine) version.\n\n\u003cbr /\u003e\n\n\nYou must first create the `app.yaml` file for the `default` service of your app\nbefore you can create and deploy `app.yaml` files for additional services.\n\n\nGenerally, your `app.yaml` file requires only the `runtime` element for a simple\nRuby app in the standard environment, for\nexample:\n\n\n runtime: ruby34\n\n\nApp Engine provides default values for all other settings, including\nthe [F1 instance class](/appengine/docs/standard#instance_classes), which\ndetermines the memory and CPU resources that are available to your app, and\n[automatic scaling](/appengine/docs/standard/how-instances-are-managed#scaling_types),\nwhich controls how and when new instances of your app are created.\n\nIf you need to override the default settings, create an `app.yaml` file and\nspecify the settings you need. For more information, see\n[`app.yaml` file reference](/appengine/docs/standard/reference/app-yaml).\n\n\nYou can specify a unique name for your `app.yaml` files, but then you must\nspecify the file name with the [deployment\ncommand](/appengine/docs/standard/testing-and-deploying-your-app)\nas well. For example, if you name your `app.yaml` file `service-name-app.yaml`\nor `app.standard.yaml`, then you must deploy your app using either: \n\n gcloud app deploy service-name-app.yaml\n gcloud app deploy app.standard.yaml\n\nTo learn more about structuring multiple services and `app.yaml` files in your app, see [Structuring web services](/appengine/docs/standard/configuration-files).\n\n\u003cbr /\u003e\n\nAll configuration elements\n--------------------------\n\nFor a complete list of all the supported elements in this configuration file,\nsee the\n[`app.yaml` reference](/appengine/docs/standard/reference/app-yaml)."]]