Mulai 17 Juni 2024, Cloud Source Repositories tidak tersedia untuk pelanggan baru. Jika organisasi Anda belum pernah menggunakan Cloud Source Repositories, Anda tidak dapat mengaktifkan API atau menggunakan Cloud Source Repositories. Project baru yang tidak terhubung ke organisasi tidak dapat mengaktifkan Cloud Source Repositories API. Organisasi yang telah menggunakan Repositori Sumber Cloud sebelum 17 Juni 2024 tidak akan terpengaruh oleh perubahan ini.
Men-deploy dari Cloud Source Repositories ke App Engine
Tetap teratur dengan koleksi
Simpan dan kategorikan konten berdasarkan preferensi Anda.
Topik ini menjelaskan cara mengintegrasikan Cloud Source Repositories dengan App Engine.
App Engine adalah framework web dan platform cloud computing untuk
mengembangkan dan menghosting aplikasi web menggunakan Google Cloud.
Anda dapat men-deploy kode dari Cloud Source Repositories ke App Engine dengan cara yang sama seperti menggunakan file lokal. Langkah-langkah dalam topik ini menunjukkan
caranya.
Meng-clone repositori
Jika Anda belum melakukannya, clone konten repositori Google Cloud
ke repositori Git lokal menggunakan perintah
gcloud source repos clone:
gcloud source repos clone hello-world
Men-deploy aplikasi
Dari jendela terminal, buka repositori Anda. Pada perintah
berikut, ganti path_to_repository dengan jalur ke
repositori yang berisi aplikasi Anda.
cdpath_to_repository
Men-deploy aplikasi Anda:
gcloud app deploy app.yaml
Ikuti petunjuk untuk men-deploy dan menguji aplikasi Anda.
Untuk mengambil perubahan baru, seperti saat Anda mendorong update ke repositori, jalankan kembali perintah gcloud app deploy app.yaml.
[[["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-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"]]