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

前端 未结 3 529
暗喜
暗喜 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:10

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

    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.

提交回复
热议问题