问题描述
我有nopCommerce 3.5源$ C $ c。与众多的自定义和插件,需要移动到新的服务器。我恢复了数据库备份,并有新的服务器上的源。以确保正确部署到新的开发服务器需要哪些其他措施?
I have nopCommerce 3.5 source code with numerous customizations and plugins that needs to be moved to a new server. I restored the database backup and have the source on the new server. What other steps are needed to ensure proper deployment to the new development server?
推荐答案
有关最新版本NopCommerce,有发布您的code到服务器这里短指令文件:的
For the latest NopCommerce version, there is a short instructions file for publishing your code to the server here: http://nopcommerce.codeplex.com/SourceControl/latest#src/Deploying.Readme.txt
我没有亲自尝试过这种方法,因为我已经用NopCommerce高达3.10版本,其中有一个替代的方法部署。 (见下文)
I haven't personally tried that method because I've used NopCommerce up to version 3.10, which had an alternative deploying method. (see below)
有关NOP 3.50方法,你还需要设置数据库凭据和数据库名称为应用程序数据\\ settings.txt文件。
For Nop 3.50 method, you'd also need to set database credentials and database name into AppData\Settings.txt file.
在情况下,你会发现它很有用,我还会present我的例行常规部署nopCommerce时(小于3.10 =)的网站如下:
In case you will find it useful, I'll also present my usual routine when deploying a nopCommerce (<= 3.10) website is the following:
- 创建为NopCommerce一个文件夹(很明显:)
- 创建在IIS管理器的IIS网站使用.NET启用V40-应用程序池。
- 启用32位应用程序的支持应用程序池(在高级属性)。的我有一些插件依赖32位的DLL。如果你没有这样的相关性,你可能不需要启用该选项。的
- 设置适当的权限。的在我的IIS设置,我需要给修改的文件夹权限IUSR和IIS_IUSRS。的
- 内置NopCommerce复制到文件夹。
- 下面是一个批处理脚本我用来创造必要的文件归档(重新建设后,整个解决方案)的
- 脚本还包括有关下一步该怎么做的建议。 请检查出来
- Create a folder for NopCommerce (obviously :)
- Create an IIS website in IIS Manager with .NET v40-enabled application pool.
- Enable "32-bit application support" on the application pool (in advanced properties). I have some plugins that rely on 32-bit DLLs. If you don't have such dependencies, you might not need to enable this option.
- Set proper permissions on the folder I created so NopCommerce (more exactly, the IIS process for the website) can successfully read and write data. In my IIS setup, I need to give "Modify" permissions on the folder to IUSR and IIS_IUSRS.
- Copy the built NopCommerce to the folder.
- Here is a batch script I used for creating an archive of necessary files (after re-building the entire solution): https://gist.github.com/dan-mirescu/c14cc72e3f8ecca988b7
- The script also includes suggestions about what to do next. Please check them out.
当然,你还需要有数据库的准备:
And of course, you also need to have the database ready:
- 恢复数据库,并根据需要创建有它拥有者访问SQL的用户。
- 更新应用程序数据/ SETTINGS.TXT新数据库设置。
我希望这有助于。
这篇关于如何从源头部署nopCommerce 3.5到新的服务器?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!
我创造了这么NopCommerce(更准确地说,为网站的IIS进程)可以成功读取和写入数据的文件夹上