如何设置单独的端口为本地和云的Azure? [英] How to set separate port for local and cloud in Azure?

查看:192
本文介绍了如何设置单独的端口为本地和云的Azure?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

有关发展宗旨,我们要指定端点只对本地的端口,真正使用的端口进行云部署,任何方式得到这个工作的?

For development purpose, we want to specify the port of EndPoint only for local, and the real used port for cloud deployment, any way to get this work?

推荐答案

由于端点在 csd​​ef 定义的文件,该文件进入包,一个可能的解决办法是将创建两个单独的云项目 - 一个用于本地和其他云和定义哪些需要根据环境被打开的端口。事实上,这就是我们在我们的项目之一,做到了。

Since the endpoints are defined in csdef file which goes into the package, one possible solution would be to create two separate cloud projects - one for local and other for cloud and define ports which needs to be opened according to the environment. In fact, this is what we did in one of our projects.

其他的想法是XDT转换应用于您的csdef文件。请参阅此博客帖子了解更多详情:<一href=\"http://fabriccontroller.net/blog/posts/apply-xdt-transforms-to-your-servicedefinition-csdef-file/\" rel=\"nofollow\"><$c$c>http://fabriccontroller.net/blog/posts/apply-xdt-transforms-to-your-servicedefinition-csdef-file/

Other idea would be to apply XDT transformation to your csdef file. Please see this blog post for more details: http://fabriccontroller.net/blog/posts/apply-xdt-transforms-to-your-servicedefinition-csdef-file/

这篇关于如何设置单独的端口为本地和云的Azure?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆