google-app-engine - 'goapp deploy' 和 'appcf.py' 在 Google App Engine 上部署我的应用程序之间的区别?

标签 google-app-engine go deployment

我不明白这两者的区别

goapp deploy -application <YOUR_PROJECT_ID> myapp/

appcfg.py -A <YOUR_PROJECT_ID_> -V v1 update myapp/

尝试在 Google App Engine 中部署我的应用程序时。有人可以启发我吗?

最佳答案

记录在 Uploading, Downloading, and Managing a Go App 中:

goapp deploy wraps the appcfg.py python tool provided in the SDK. You can also invoke this tool directly if you need greater control over the deployment.

goapp deploy相当于appcfg.py update myapp/ .

这些命令从 app.yaml 获取应用程序 ID 和其他配置自动地。您可以使用 -application goapp 的参数, 或 -Aappcfg.py覆盖应用程序 ID。


所以 goapp deploy电话 appcfg.py在引擎盖下,隐藏appcfg.py是一种方便的方法.

goapp deploy -application <YOUR_PROJECT_ID> myapp/

部署位于 myapp 中的应用程序文件夹。配置将从 app.yaml 中读取文件必须位于 myapp/app.yaml .该命令还会覆盖应用程序 ID(如果存在于 app.yaml 中)和 <YOUR_PROJECT_ID>将被使用。

appcfg.py -A <YOUR_PROJECT_ID> -V v1 update myapp/

这也部署了应用程序,但是 -V覆盖 myapp/app.yaml 中可能存在的版本, 并将使用版本 v1 . -A用于覆盖 app.yaml 中的 ID , 将是 <YOUR_PROJECT_ID>在这种情况下。

关于google-app-engine - 'goapp deploy' 和 'appcf.py' 在 Google App Engine 上部署我的应用程序之间的区别?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/36291105/

相关文章:

google-app-engine - 为什么我不断收到 "No suitable driver found"错误?

unit-testing - 为从中读取的函数填充 os.Stdin

email - 使用 Golang 解析电子邮件字段

asp.net - .NET MVC 3 部署包缺少引用

java - Google App Engine "Cloud Datastore service"部署错误

python - 如何将 Django App 部署到 1and1 (ionos)

google-app-engine - 如何以每个实体都知道其在列表中的位置的方式在 App Engine DataStore 上保留有序列表?

node.js - 无法在 Google App Engine 上使用 nodejs 应用程序更新 VM

google-app-engine - 在 Google App Engine 中,如何在将文件写入 blobstore 而不是超过软内存限制时减少内存消耗?

go - 使用 RSA-2048 服务器公钥加密客户端私钥