How to deploy an Orchard CMS site, including all settings and content from development environment?

前端 未结 3 565
暗喜
暗喜 2021-01-31 03:29

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 so

3条回答
  •  不要未来只要你来
    2021-01-31 04:11

    I really appreciate the answer from Piotr first of all. I also like to add here what I've found based on Piotr's answer. Here are my steps to deploy Orchard project after spend few days to figure it out what the easiest way to deploy. [Overall concept and requirement to deploy] 1. Using Visual Study 2010 (or equivalent tool) and compile all the projects. In this stage, there is no hidden or complicate process for compile all the code, right?

    1. Run "ClickToBuild.cmd" to build from the command console. Here is the tricky steps here. You can get lots of help from http://stefantsov.com/msbuild-and-msdeploy-for-orchard in order to edit Orchard.proj file. You may facing lots of errors, which is red colored, that you have to remove by comment out in Orchard.prof file. Don't forget to run command window as an administrator mode. Once you successfully compile and build by ClickToBuild.cmd, you are ready to move to next step. Don't border to build for test project. I just commented out all the test projects to build.

    2. If you have missing media files, copy files from ~\src\Orchard.Web\Media*.* to ~\build\Stage\Media\ folder.

    3. Copy all files from ~\src\Orchard.Web\App_Data folder to ~\build\Stage\App_Data except log folder. If you want to change the default URL which is "OrchardLocal", you could edit from either admin page or manually change on the code. (or just keep the same name of app when you insert new app on IIS).

    4. Create (or Add) new application on IIS server. Make sure your application pool sets to "integrate mode" rather than classic.

    5. If you have broken links of pages, you should go to admin page. And make sure the base url is matched with your default url from /admin/settings/Index page. Go to Naviation menu in admin page and validate all the Urls as well.

    Even though I have some bugs, which I cannot see Bing-map/facebook windows yet, every thing works fine now. Hope this help.

提交回复
热议问题