[英]Octopus Deploy tentacles and 2 Nuget packages?
I'm learning about the environments and machines of Octopus. 我正在学习八达通的环境和机器。 I have a Web project that is packaged into a Nuget package and deployed to Azure Websites, and I also have a DB project that is packaged into a separate Nuget package to SQL Azure.
我有一个打包到Nuget包中并部署到Azure网站的Web项目,还有一个数据库项目,它打包到了SQL Azure的单独Nuget包中。 When Octo picks them up and deploys, is it better to have two separate machines have tentacles for each in the same environment, or should they be on one machine (in the case that the website deployment passes and the DB doesn't)?
当Octo拿起它们并进行部署时,最好是在同一环境中让两台单独的计算机在每台计算机上都有触角,还是应该将它们放在一台计算机上(如果网站部署通过而数据库却没有)?
If you're deploying to Azure, it doesn't really matter - 1 tentacle is enough for ALL environments (regardless of project type). 如果要部署到Azure,则没关系-1个触手足以应付所有环境(无论项目类型如何)。 We do this all the time for our Azure projects.
我们始终为Azure项目执行此操作。 You can think of the tentacle being a PowerShell script runner against Azure;
您可以认为触手是针对Azure的PowerShell脚本运行程序; nothing really happens on the actual server itself.
没有什么发生在实际的服务器本身。
You can have multiple Octopus "environments" using the same tentacle (especially for Azure) - as you can reuse the same tentacle. 您可以使用同一触手(尤其是Azure)使用多个章鱼“环境”,因为您可以重复使用同一触手。 This will allow you to use different scopes for your variables to apply the appropriate values per each logical environment, all the while targeting just one server which does runs scripts against Azure.
这将允许您对变量使用不同的作用域,以在每个逻辑环境中应用适当的值,同时始终仅针对一台针对Azure运行脚本的服务器。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.