如何将文件部署到Azure实例?

发布于 2025-01-05 15:37:26 字数 96 浏览 2 评论 0原文

我有一个在 Azure 中运行的 Orchard CMS 测试站点。我有一些主题文件想要部署到该网站。我该怎么做?顺便说一句,我被任命为共同管理员,使用的是我的 live-ID。

I have an Orchard CMS test site running in Azure. I have some theme files I want to deploy to the site. How do I do that? I was made a co-admin using my live-ID by the way.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(3

云朵有点甜 2025-01-12 15:37:26

这取决于您是否想要暂时将某些内容放到服务器上,或者是在某些人将新版本发布到 Azure 后需要进行更改。

如果启用了远程桌面,那么您可以临时放置一些 css 文件(这些文件将在发布新版本后消失,因为会有新的虚拟机实例)。此外,如果您有多个虚拟机实例,则必须将文件复制到每个虚拟机实例。我不推荐这个解决方案。

如果您希望更改始终存在,那么您需要将主题文件添加到项目中并发布新版本。有很多关于如何将新版本发布到Azure的说明(例如这个)。

可能有一些我不知道的 Orchard 特定解决方案,这些说明一般是关于 Azure 的。

It depends do you want a temporarily put something to the server or is the change something that needs to be there after some publishes new version to the Azure.

If remote desktop is enabled then you can put some css files temporarily there (those will disappear after publishing new version as there will be new instance of virtual machine). Also if you have multiple instances of virtual machines then you have to copy the files to each of them. I don't recommend this solution.

If you want changes to be always there then you need to add theme files to your project and publish a new version. There are lots of instructions how to publish new version to the Azure (for example this one).

There might be some Orchard specific solutions that I am not aware of, these instructions are about Azure in general.

清风夜微凉 2025-01-12 15:37:26

我不熟悉 Orchard,但如果您想将文件部署到 Azure 实例,您可以使用 RDC 将这些文件添加到服务器上。但这不是最好的方法,因为如果您的实例发生问题,Azure 会自动使用新的部署包重新创建新实例,而无需您上传的文件。

I'm not familiar with Orchard, but if you want deploy files to Azure instance you can use RDC to add those on server. But that's not the best way because if something wrong happen to you instance Azure automatically recreates new instance with fresh deployment package without your uploaded files.

私野 2025-01-12 15:37:26

尝试转到仪表板、主题,然后“从计算机安装主题”。除非我错过了什么?

啊——无视我刚才说的话。看起来你必须先构建然后上传。请参阅本页底部:http://docs.orchardproject.net/文档/将 Orchard 部署到 Windows Azure

Try going to the dashboard, themes, then "Install a theme from your computer". Unless I've missed something?

Ahh - disregard what I just said. Looks like you have to do a build then upload. See the bottom of this page: http://docs.orchardproject.net/Documentation/Deploying-Orchard-to-Windows-Azure

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文