这是关于使用 Visual Studio 2013 发布/部署 Orchard CMS 1.8的后续问题
我是 Orchard 1.8 的新手,并且已经使用 Visual Studio Premium 2013 版本 12.0.21005.1(使用 .NET 4.5.51641 框架)开发了一个网站,我需要知道如何从本地桌面开发框中发布/部署 Orchard 网站到具有 Windows Server 21012 R2 和 IIS 8.5 的内部“生产”机器。
该站点的开发版本(在我的本地计算机上)使用 SQL Server 2012 SP1 作为数据库。
我能够部署一次并超越上述问题。
开发箱上的网站有一些变化。当我尝试发布站点时,它不会将完整的站点文件夹集传输到生产服务器。只有以下内容。
Folder tree for new publish:
| - Global.asax
| - Local_A1_Website_Publish_DirList.txt
| - Refresh.html
| - Web.config
+_ bin
+_ Config
+_ Proccess
原来是
Folder tree for the original publish:
| - Global.asax
| - Refresh.html
| - Web.config
+_ App_Data
+_ bin
+_ Config
+_ Core
+_ Media
+_ Modules
+_ Proccess
+_ Themes
不知道和第一次发布有什么不同。我可以将它从开发盒复制到生产服务器吗?如果不是,我如何获得要发布的完整文件夹结构集?
提前致谢。
如果它会帮助 .pubxml 文件是
<?xml version="1.0" encoding="utf-8"?>
<!--
This file is used by the publish/package process of your Web project. You can customize the behavior of this process
by editing this MSBuild file. In order to learn more about this please visit http://go.microsoft.com/fwlink/?LinkID=208121.
-->
<Project ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<PropertyGroup>
<WebPublishMethod>FileSystem</WebPublishMethod>
<LastUsedBuildConfiguration>Release</LastUsedBuildConfiguration>
<LastUsedPlatform>Any CPU</LastUsedPlatform>
<SiteUrlToLaunchAfterPublish />
<LaunchSiteAfterPublish>True</LaunchSiteAfterPublish>
<ExcludeApp_Data>False</ExcludeApp_Data>
<publishUrl>\\server\folder</publishUrl>
<DeleteExistingFiles>False</DeleteExistingFiles>
</PropertyGroup>
</Project>