简体   繁体   English

使用Java在GAE中上传不同版本

[英]Uploading different versions in GAE in Java

I'm writing a GAE project in Java and now, I'm trying to create a different version to use it for testing future changes. 我正在用Java编写GAE项目,现在,我试图创建一个不同的版本以将其用于测试将来的更改。

I read about modules, app-engine-web.xml ..., but I can't find how to deploy two versions. 我阅读了有关模块app-engine-web.xml ,但是找不到如何部署两个版本。 I have seen posts that say that you can access it by changing the url: 我看到过一些帖子,说您可以通过更改url来访问它:

"version"."app_id".app...

But I don't know what files have I to modify. 但是我不知道我要修改哪些文件。

In appengine-web.xml you can use the version tag to specify a version. appengine-web.xml中,您可以使用version标记指定版本。 Likewise when deploying using appcfg you can use the -v argument to override that value with a different version. 同样,使用appcfg进行部署时,可以使用-v参数以其他版本覆盖该值。

So one approach is to have a production version specified in the config file and a testing version you deploy with 因此,一种方法是在配置文件中指定生产版本,并在其中部署测试版本

appcfg -v test_version ...

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

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