构建和部署Orchard-Building and deploying Orchard

This document is providing the steps in order to do so.

本文档提供了执行此操作的步骤。

If you just need to compile locally, and you want to use IIS on your dev machine instead of the built-in development web server, all you need to do is to go into the properties of the Orchard.Web project in Visual Studio, go to the Web tab and check use local IIS Web Server instead of the default development server.

如果你只需要在本地编译,并且你想在你的开发机器而不是内置的开发Web服务器上使用IIS,那么你需要做的就是进入Visual Studio中Orchard.Web项目的属性,转到Web选项卡并检查使用本地IIS Web服务器而不是默认开发服务器。

If instead what you need is a clean version of the application ready to run, follow the following steps:

如果您需要的是准备运行的应用程序的干净版本,请按照以下步骤操作:

  1. Make sure that you have either the .NET SDK or Visual Studio installed

1.确保安装了.NET SDK或Visual Studio

(in the latter case, make sure you are using a Visual Studio command prompt).

(在后一种情况下,请确保您使用的是Visual Studio命令提示符)。

  1. Enlist in the source

2. [参与来源](http://docs.orchardproject.net/Documentation/Setting-up-a-source-enlistment)

  1. Open a Visual Studio command prompt or a .NET SDK command prompt at the location of your enlistment and run build Precompiled. This will build the application into a build subdirectory.

3.在您的登记位置打开Visual Studio命令提示符或.NET SDK命令提示符,然后运行build Precompiled。这将把应用程序构建到build子目录中。

  1. Deploy the contents of the \build\Precompiled directory into a clean IIS web site's root directory.

4.将\ build \ Precompiled目录的内容部署到干净的IIS网站的根目录中。

  1. If you are running on a 64 bit system, go into the advanced setting of the application pool for the application and make sure 32 bit applications are enabled (create a new app pool if you have to).

5.如果您在64位系统上运行,请进入应用程序的应用程序池的高级设置,并确保启用32位应用程序(如果必须,请创建新的应用程序池)。

  1. Create an App_Data folder under the IIS application's root. Make sure the directory is empty.

6.在IIS应用程序的根目录下创建一个“App_Data”文件夹。确保目录为空。

  1. Configure File and Folder Permissions for the user that IIS is running under. If you're not sure what that user is, go to IIS Authentication for the application. If anonymous access is enabled, the user is the local IIS_IUSRS. These are the folders that will require permissions:

7.为运行IIS的用户配置文件和文件夹权限。如果您不确定该用户是什么,请转到该应用程序的IIS身份验证。如果启用了匿名访问,则用户是本地“IIS_IUSRS”。这些是需要权限的文件夹:

- `App_Data` - write

- `Media` - write

- `Themes` - write (for gallery support)

- `Modules` - write (for gallery support)

- root - read
  1. Browse to the application. You should see the setup screen at this point.

8.浏览到该应用程序。此时您应该看到设置屏幕。

Note: IIS6 is not supported.

注意:不支持IIS6。