发布/部署Orchard CMS 1.8 w / Visual Studio 2013 - 并非所有文件都转移到服务器 [英] Publishing/Deploying Orchard CMS 1.8 w/ Visual Studio 2013 - Not all files are transfered to server

查看:214
本文介绍了发布/部署Orchard CMS 1.8 w / Visual Studio 2013 - 并非所有文件都转移到服务器的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

这是关于发布的后续问题/部署Orchard CMS 1.8与Visual Studio 2013

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

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.

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

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

我是能够部署一次,超出上述问题。

I was able to deploy once and get beyond the issue sited above.

开发框上的网站有一些变化。当我尝试发布网站时,它不会将完整的站点文件夹传输到生产服务器。只有以下内容。

There were some changes to the site on the Dev box. When I try to publish the site, it's not transferring the complete set of site folder to the production server. There is only the following.

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

不知道与第一次发布有什么不同。我可以将它从开发框复制到生产服务器。如果不是如何获得要发布的完整的文件夹结构集?

Don't know what it's different from the first publish. Can I just copy this from the dev box to the production server. If not how do I get a complete set of the folder structure to be published?

提前感谢。

如果这将有助于.pubxml文件

If it will help the .pubxml file is

<?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>


推荐答案


  1. 右键单击Orchard.Web项目,然后转到属性。

  2. 选择左侧的打包/发布Web选项卡。

  3. 确保构建配置是您要部署的配置。

  4. 在要部署的项目部分中,下拉列表应该显示此
    项目中的所有文件,而不是仅运行此应用程序所需的文件。

  1. Right click on the Orchard.Web project and go to Properties.
  2. Select the Package/Publish Web tab on the left.
  3. Make sure the build configuration is the config you are using to deploy.
  4. Under the Items To Deploy section, the dropdown should say "All files in this project", not "only files needed to run this application".

这篇关于发布/部署Orchard CMS 1.8 w / Visual Studio 2013 - 并非所有文件都转移到服务器的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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