简体   繁体   English

Parse.com云代码版本控制,有可能吗?

[英]Parse.com Cloud Code Versioning, it it possible?

I'm a iOS developer and I have just lunched my app to the AppStore. 我是一名iOS开发人员,刚刚将我的应用程序午餐到了AppStore。

I'm using Parse.com in my app. 我在我的应用程序中使用Parse.com。 Cloud Code for the services. 服务的云代码。 Heroku.com connected with my parse.com app for the Socket. Heroku.com与我的parse.com应用程序连接了Socket。

Now I need to change some functions in my app's CloudCode and in the iOS client too and resubmit the app, but I do not want the new version of the CloudCode worked with old version of the app. 现在,我还需要更改应用程序的CloudCode和iOS客户端中的某些功能,然后重新提交该应用程序,但是我不希望新版本的CloudCode与该应用程序的旧版本一起使用。

I need to have a versioning on my Parse.com app's CloudCode. 我需要在Parse.com应用程序的CloudCode上进行版本控制。 How can I achieve that? 我该如何实现?

You can setup your own versioning by providing a version key in the request to cloud code functions. 您可以通过在对云代码功能的请求中提供版本密钥来设置自己的版本控制。 Each cloud code function which supports multiple versions can check for this value to decide what logic should be applied. 支持多个版本的每个云代码功能都可以检查该值,以决定应采用哪种逻辑。 Any which don't will simply ignore the additional parameter. 任何不这样做的人都会简单地忽略附加参数。

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

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