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