What is the correct way of deploying nop website on server ?

This topic was automatically closed 365 days after the last reply. New replies are no longer allowed.
11 yıl önce
1. So I download the source code 2.60 version
2. Open solution in VS 2010, do many customization, add pages etc
3. Build solution in VS2010
4. Close the VS 2010
5. Run prepare.bat
6. Run deploy.bat
7. Deployable folder gets created
8. Upload all the content from Deployable folder and upload everything on my server
9. Deployable folder does not create SETTING.TXT so I copy "setting.txt" from Presentation\Nop.Web\App_Data and upload it to App_Data on server
10. Convert folder on server to application with ASP.NET 4.0 in IIS


Q-1 Am I doing all steps right ?

Q-2 Instead of running deploy.bat can I take all t he files from Presentation\Nop.Web\ and copy to server ? What's the difference between files and folder created by deploy.bat & files and folder in Nop.Web ?
11 yıl önce
Hi

Id advise against it as its not nessercary to have all the directories contained in Nop/Web/Prestentation on the webserver.

https://www.nopcommerce.com/boards/t/16119/general-advice-for-my-first-web-app-.aspx

You can also use IIS on your local machine to sync with live server.

http://www.iis.net/learn/publish/using-web-deploy/synchronize-iis

I use a vpn and upload with american standard datetime on each deployed file. if we have to revert back to a previous deployed file or to the next update etc. I use deploy and prepare.bat then upload each time.

Hope this helps you further.

Richard
11 yıl önce
Thank you but I am not talking about update, I am talking about first time upload. What steps are correct from what I have mentioned above and what is the difference between both (my questions above) ?
11 yıl önce
https://www.nopcommerce.com/docs/79/installing-nopcommerce.aspx
11 yıl önce
How are you connecting to your db??
11 yıl önce
I have correct connection string in my setting.txt (in App_Data folder) which is running fine in Visual Studio - it can;t be incorrect on server and I have mentioned about setting.txt in my steps.

This https://www.nopcommerce.com/docs/79/installing-nopcommerce.aspx does not give much information.

I will deeply appreciate if anyone can answer my question that I have posted here in my 1st post
11 yıl önce
As for Q-1, yes those steps look correct, except missing that you should also copy App_Data\InstalledPlugins.txt
However, copying Settings.txt and InstalledPlugins.txt depends on where your DB is.  If your prod DB is same as your dev DB, then OK, but if not, then you would have to make changes to Settings.txt.

As for Q-2.   Go with the Deploy.bat, or manually deploy as per Deploying.Readme.txt in \src folder.  Besides what's mentioned above (extra stuff), Administration dlls (bin) should go in the main bin folder, and Plugin folders should go in root /Plugin folder - also note that those folder names don't have "Nop.Plugin." prefix.
11 yıl önce
Thank  you  NewYork
so what if I  build  my  project  in  visual  studio ?  it  is  doing  the  same  thing  what .bat  files  are  doing ? or no?  in  that  case  shouldn't I  upload  the  content  of Presentation/Nop.Web ?
11 yıl önce
anyone ?
11 yıl önce
Prepare.bat is similar to VS Build.
Deploy.Bat does build, and then is similar to VS Publish.

However, you can't Publish nopC in VS, unless you make some changes as per
https://www.nopcommerce.com/boards/t/12033/installing-nop-20-on-azure.aspx?p=2
However, as per my entry in above topic, I've had some problems with it (which I've yet to spend time resolving, so I just manually copy two files after I publish)

As per above, there are many files in the solution that should not be deployed, and special deploy for Admin and Plugins.  So, why don't you want to use Deploy.bat?
This topic was automatically closed 365 days after the last reply. New replies are no longer allowed.