NopCommerce安装和升级

来源:互联网 发布:react 数据undefined 编辑:程序博客网 时间:2024/05/14 15:50

安装

  • 将不带代码的软件包解压到IIS站点根目录或虚拟目录,第1次浏览网站时会显示安装页面如下:

按提示操作即可完成安装。

 

  • 将带代码的软件包解压,在Visual  Studio中打开文件NopCommerce.sln,运行项目Nop.Web。

Visual studio学习版打开文件NopCommerce.sln 会有警告提示,但仍可构建和运行项目文件

  • 从开发版本获得发布版本
  1. Run the Prepare.bat file to build the project in release mode and move the plugins to the correct directory.
  2. Run the Deploy.bat file to perform the same procedure as thePrepare.bat file, but also move all the websites and files to the\Deployable\Nop_2.X directory.
  3. Select all the files in \Deployable\Nop_2.X directory and upload them to your web server.

 

升级

 

  1. 下载最新软件包
  2. 备份网站及数据库
  3. 按版逐步升级。如果当前版本是 2.00,最新版本是 2.30,那么你得先升级到 2.10,然后升级到 2.20,最后升级到 2.30。因此需要下载所有需要的升级脚本。
  4. 对数据库执行升级脚本
  5. 移除原网站文件夹内的所有文件
  6. 上传新网站的所有文件
  7. 将原网站的文件Settings.txt和InstalledPlugins.txt 复制到App_Data 目录
  8. 检查是否升级成功

 如果以文件形式在\Content\Images\中存储了图片,还需要复制原来的目录\Content\Images\到新网站。

原创粉丝点击