简体   繁体   English

google app engine源码根在哪里

[英]Where is the google app engine source code root

Where is the google app engine home root?谷歌应用引擎主目录在哪里? I can't seem to find it, I want to edit the source code in there but I just can't.我似乎找不到它,我想在那里编辑源代码,但我不能。 I want to use the default editor but I just can't seem to find the root project or wherever it is that's located at.我想使用默认编辑器,但我似乎无法找到根项目或它所在的任何位置。 Do you know where it is?你知道在哪里吗?

What you want to do is only possible if you are using App Engine Flex .只有当您使用App Engine Flex时,您才可以做您想做的事情。

For App Engine Flex the deployment gets your files, build a Docker container with them, and then deploys this container inside a VM.对于App Engine Flex ,部署会获取您的文件,使用它们构建 Docker 容器,然后将此容器部署到 VM 中。 As you can see on the documentation , you can connect directly to your container by running:正如您在文档中看到的那样,您可以通过运行以下命令直接连接到您的容器:

gcloud app instances ssh [INSTANCE-NAME] --service [SERVICE] --version [VERSION] 
docker exec -it gaeapp /bin/bash

Once you run these commands you will be on the root folder of your container and changes you make on files will be reflected on the current running version of your app.运行这些命令后,您将位于容器的根文件夹中,您对文件所做的更改将反映在应用程序的当前运行版本上。

If you are using App Engine Standard , you cannot access the instances since it is a fully managed environment.如果您使用的是App Engine Standard ,则无法访问实例,因为它是一个完全托管的环境。 Therefore you won't be able to find the root of the running app version.因此,您将无法找到正在运行的应用程序版本的根目录。

NOTE : For App Engine Standard , since it uses a staging bucket to gather the code before compiling, you are able to get the files themselves but on a pre deployment state, meaning that if you change them it will not reflect on the current running version of your app.注意:对于App Engine Standard ,由于它在编译之前使用暂存存储桶来收集代码,因此您可以自己获取文件,但在预部署 state 上,这意味着如果您更改它们,它不会反映在当前运行的版本上你的应用程序。 You can find your staging bucket through the App Engine Admin API.您可以通过 App Engine 管理员 API 找到您的暂存存储桶。 This bucket is usually staging.<PROJECT_ID>.appspot.com , although you can change this configuration.此存储桶通常是staging.<PROJECT_ID>.appspot.com ,尽管您可以更改此配置。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM