Testing uploaded app, other than default version

混江龙づ霸主 提交于 2019-12-01 03:04:27

问题


Can you test an uploaded version of an app, other than the "default" version?

I'm told it can be: WoLpH Google App Engine version numbers?

But I can't find it in the dashboard or the doco.


回答1:


If the version of app is 2 and your app URL is appname.appspot.com then URL 2.appname.appspot.com will give you access to version 2 of your app.




回答2:


As Vishal already said correctly (+1), you can prepend the version identifier to your url, so if your version is "version", the URL will be version.appname.appspot.com (app versions are strings, not numbers, although the string "2", is perfectly ok too).

To select another version from the Dashboard, just select the main application first, then use the second dropdown at the top of the page to select the version. This will show you the dashboard of another version, without changing the default (active) version.

Important considerations to keep in mind:

  • However, the main gotcha that I would like to mention, is that you're using the same Datastore of the live version. This can be a good thing, if you want to browse your application, but is not very recommendable if you want to insert test data that could potentially mess the public view.

  • You're also using the same task queues and cron, so you've to be careful of unintended consequences, should your application version update them.

If the problems mentioned above are important to you, you may consider to deploy another application to use for testing instead. In this way you'll be completely separated by the live environment.




回答3:


Note that double wildcards for appspot.com are no longer supported (*.*.appspot.com). To test different version than default use version-dot- prefix.

appname.appspot.com          // default
2-dot-appname.appspot.com    // version 2



回答4:


In the menu there is section Main > Versions and there you can choose the version then "Make default". Of course to have more than one version available there you have to change the version before deploying(as far as I remember you can do this in one of xml files).

Or you mean to have default version, but test another one?



来源:https://stackoverflow.com/questions/8548720/testing-uploaded-app-other-than-default-version

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!