部署千篇一律的网站
我正在与一系列共享相同后层和中间层的网站合作。前端具有特定于站点的页眉/页脚、存储电子邮件地址和一些其他特定于应用程序的设置。
我从未接触过大型开发商店和自动化部署的方式,因此更常见和明显的方法将在我的脑海中。
我正在尝试设置一个场景,在部署后,新程序集将在每个千篇一律的站点之间传播,并具有足够的逻辑,以便每个站点应用相关设置。
这只是布置一系列 MSBuild 或 PowerShell 命令来迭代每个站点的所有设置的问题吗?或者也许数据库值映射到由 AppStart 事件中的代码应用的特定于站点的设置?
谢谢
I'm working with a series of sites that all share the same back and middle tiers. The front-end has site-specific headers/footers, store email addresses and a few other app-specific settings.
I've never been exposed to the ways larger dev shops and automated deployments so the more common and obvious approaches will be right on over my head.
I'm trying to setup a scenario where, upon deployment, the new assemblies are propagated across each of the cookie cuttered sites with enough logic that each site applies the relevant settings.
Is this just a matter of laying out a series of MSBuild or PowerShell commands that iterate thru all settings for each site? Or perhaps databased values mapped to site-specific settings that are applied by code in the AppStart event?
thx
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
如果使用 Web 部署,则可以创建一个包,其中包含某些组件的参数(这些组件将在部署时更改),然后在部署时指定这些参数的值。以下资源提供了更多信息:
自定义部署包< /a>
Web 部署参数化实践
Web 部署:替换规则与参数化
打包和部署 Visual Studio 开发 Web 服务器的 Web 应用程序
团队构建 + Web 部署 + Web 部署 + VS 2010 = 善良
If you use Web Deploy, you can create a package with parameters for certain components that will change at deploy time, and then specify values for those parameters when you deploy. The following resources have more information:
Customizing a Deployment Package
Web Deploy Parameterization in Action
Web Deploy: Replace Rule vs. Parameterization
Packaging and Deploying Web Applications for the Visual Studio Development Web Server
Team Build + Web Deployment + Web Deploy + VS 2010 = Goodness