Pages - Menu

How to Deploy nopCommerce solutions

Important Note  This document is obsoleted from nopCommere 3.3. 

The following document was created with nopCommerce 3.1.

Trying to deploy my local development site to staging, and the process seems not that straight away.

For my first time deployment with nopCommerce, I did the following and got my site working :)

  1. Build the project.
  2. Publish Nop.Web to the ~\Deploy directory.
  3. Publish Nop.Admin to the ~\Deploy\Administration\ directory.
  4. Move ~\Deploy\Administration\bin to ~\Deploy\bin. Replace exist files.
  5. Change database connection at ~\Deploy\Presentation\Nop.Web\App_Data\Settings.txt
  6. Copy all files from ~\Presentation\Nop.Web\Plugins to ~\Deploy\Plugins
  7. Copy images from ~\Presentation\Nop.Web\Content\Images to ~\Deploy\Content\Images
  8. Reinstall Plugins. Apparently all the plugins that were installed in dev are not installed on staging. It means the status of the installs, or any configurations I have applied to plugins on dev are not stored in the database but somewhere else. 
  9. Copy ~\Presentation\Nop.Web\App_Data\InstalledPlugins.txt to ~\Deploy\Nop.Web\App_Data\InstalledPlugins.txt to 

Really hated the step 8, wish there are better ways doing it. This post saved step 8. 


No comments:

Post a Comment