使用Visual Studio 2013发布/部署Orchard CMS 1.8 [英] Publishing/Deploying Orchard CMS 1.8 with Visual Studio 2013

查看:194
本文介绍了使用Visual Studio 2013发布/部署Orchard CMS 1.8的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我是Orchard 1.8的新手,并且使用Visual Studio Premium 2013版本12.0.21005.1(使用.NET 4.5.51641框架)开发了一个网站,我需要知道如何从本地桌面发布/部署一个果园网站开发框到具有Windows Server 21012 R2和IIS 8.5的内部生产机器。



网站的开发版本(在我的本地机器上)使用SQL Server 2012 SP1作为数据库。



如何发布/部署到具有:Windows Server 21012 R2和IIS 8.5的内部生产计算机,指定另一个生产数据库(这将需要从开发版本转移到其中的数据)?



我也是新的使用VS发布/部署。如果可能,我想使用文件系统作为Publish方法。



将非常感谢任何详细的步骤/指导如何做到这一点。 >

提前感谢

解决方案

您是否需要更改设置.txt不是web.config的数据库连接字符串。



对于剩下的步骤,此答案假定您正在从Orchard Source开发,因此您可以运行构建预编译从开发者命令提示符。以下是以下步骤的概述:


  1. 在服务器上配置IIS 8.5 与您配置的方式相同在本地桌面上例如,您需要配置应用程序池,并确保已启用ASP.NET。

  2. 备份本地数据库并将其还原到生产 SQL Server。您还需要为应用程序池配置安全性。

  3. 创建一个 预编译生成 。 >
  4. 在生产服务器上的IIS 中创建新网站

  5. 将步骤3中的构建结果复制并粘贴到根据需要,直接网站的根目录。根据需要设置App_Data,Media,主题和模块的所有访问控制权限。

  6. 更改设置.txt文件指向新数据库。

除非你面对一些问题,否则你将会很好。您可能还需要访问您的Media文件夹,如果它包含您的站点链接的图像或其他静态资源,也可能是您的主题。


I am new to Orchard 1.8 and have developed a website using Visual Studio Premium 2013 Version 12.0.21005.1 (with the .NET 4.5.51641 Framework) and I need to know how to Publish/Deploy an Orchard website from a local desktop development box to an in-house "production" machine that has Windows Server 21012 R2, and IIS 8.5.

The development version of the site (on my local machine) uses SQL Server 2012 SP1 as the database.

How do I Publish/Deploy to the in-house "production" machine that has: Windows Server 21012 R2, and IIS 8.5 and specify another "production" database (which will need the data from the development version transferred to it)?

I am also new to publishing/deploying using VS. I would like to use "File System" as the Publish method, if possible.

Any detailed steps/instructions on how to do this would be greatly appreciated.

Thanks in advance.

解决方案

You're right about needing to change settings.txt not web.config for the database connection string.

For the remaining steps, this answer assumes that you're developing from the Orchard Source, so you can run build precompiled from a developer command prompt. Here is an overview of the steps:

  1. Configure IIS 8.5 on the server the same way that you configured it on your local desktop. You'll need to configure the application pools, for instance, and also make sure you have ASP.NET enabled.
  2. Backup your local database and restore it on the production SQL Server. You will also need to configure security for the application pool.
  3. Make a precompiled build of your Orchard CMS.
  4. Make a new website in IIS on your production server.
  5. Copy and paste the build results from step 3 into the root directly of the website from step 4. Set all the Access Control permissions for App_Data, Media, Themes, and Modules, as needed.
  6. Change the settings.txt file to point at the new database.

You will be good to go unless you face some gotchas. You might also need to bring access your Media folder, if it contains images or other static resources to which your site links, and maybe your Theme too.

这篇关于使用Visual Studio 2013发布/部署Orchard CMS 1.8的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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