如何部署一个果园CMS的网站,包括开发环境的所有设置和内容? [英] How to deploy an Orchard CMS site, including all settings and content from development environment?

查看:147
本文介绍了如何部署一个果园CMS的网站,包括开发环境的所有设置和内容?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我一直在试图建立和部署在乌节CMS运行的网站。我有previously下载果园,建立了一个开发环境,做了一些修改的来源,添加和修改主题,增加了一些内容,等等。我一直在使用SQL CE数据库。现在我想建立和部署完整的网站。我已经通过运行构建脚本构建部署包,所描述的<一个href=\"http://www.orchardproject.net/docs/Building-and-deploying-Orchard-from-a-source-$c$c-drop.ashx\">here.这很容易简单地内置包ftp到托管服务器。然而,访问该网站时,我现在明白了安装新的站点程序。显然,从我的开发环境中的CMS设置和内容并未体现在部署包。因此,我需要复制所有内容,并重新做的所有设置,包括创建再所有小工具等。

I've been trying to build and deploy a website running on Orchard CMS. I've previously downloaded Orchard, set up a development environment, made a few modifications to the source, added and modified a theme, added some content and so forth. I've been using the SQL CE as database. Now I want to build and deploy the complete website. I've built a deployment package by running the build script, as described here. It's easy to simply ftp the built package to the hosting server. However, when visiting the site I now get the install a new site procedure. Apparently, the cms settings and content from my development environment have not been reflected in the deployment package. Thus, I need to copy all the content and re-do all the settings, including creating all widgets etc. again.

有没有人对如何从发展发布果园现场生产环境,包括CMS设置,窗口小部件设置,内容等有好的想法?我在网上找到的所有指南介绍了如何使用WebMatrix的一个果园现场部署到共享主机或天青,但所有这些指南的最终使用具有清洁果园安装。我想实现的是在本地开发网站,然后整个网站推到托管服务器。

Does anyone have any good ideas on how to publish an Orchard site from a development to a production environment, including the cms settings, widget settings, content, etc? All guides I've found on the web describe how to use WebMatrix to deploy an Orchard site to shared hosting or Azure, but all of those guides end up with having a clean Orchard installation. What I would like to achieve is to develop the site locally, and then push the entire site to the hosting server.

推荐答案

如果你已经建立了一个部署包,并将其传输到您的服务器(通过FTP),你几乎完成。有两件事情你以后做。的记住,不要运行首次设置。

If you have built a deployment package and transferred it to your server (via FTP), you are almost done. There are two things you have to do after that. Remember, do not run the first-time setup.


  1. 从开发复制〜/ App_Data文件夹以生产。如果传输使用FTP的文件,请确保以二进制方式进行传输。的请确保该帐户的程序池下运行已读/写权限到该文件夹​​。

  2. 如果您使用的SQL Server Compact 的什么都不做。 - 数据库已在1复制

  3. 如果您使用SQL Server 2005/2008数据库。的迁移您的分贝的生产环境。接下来,更改连接字符串指向位于在〜/ App_Data文件/网站/默认SETTINGS.TXT文件中的新数据库。

  1. Copy the ~/App_Data folder from development to production. If transferring the files with ftp, make sure to transfer in binary mode. Make sure that the account, under which the AppPool runs has read/write permissions to that folder.
  2. If you use SQL Server Compact. Do nothing - the database has already been copied in 1.
  3. If you use SQL Server 2005/2008 database. Migrate your db to production environment. Next, change the connection string to point to the new database inside Settings.txt file located under ~/App_Data/Sites/Default.

在这之后,你可以运行你的网站,一切都应该没问题。因此,在你的情况下,您只能在文件夹从1复制和你进行设置。

After that, you can run your site and everything should be ok. So in your scenario, you can only copy the folder from 1. and you'd be set.

这篇关于如何部署一个果园CMS的网站,包括开发环境的所有设置和内容?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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