Publishing to Azure

This topic was automatically closed 365 days after the last reply. New replies are no longer allowed.
5 years ago
I have a successful deployment of nopCommerce 4.20 running locally  and I have made some minor changes to the Vies, etc. I now want to deploy to Azure. The webdeploy of Nop.Web from Visual Studio seems to work fine and igf I look at the files on the Azure server they are what I expect, but the site that runs wants to reinstall rather than just run as it does locally.

I must be missing something really simple. please could someone point me in the right direction.
5 years ago
Hello,

Your published nopCommerce is probably missing the dataSettings.json and installedPlugins.json files from the ~/App_Data directory if it opens the Install page after you publish it to Azure.
I don't think you'll want your published nopCommerce to have those 2 files from your local nopCommerce instance anyway. The dataSettings.json will contain the connection string to your local database and I don't think you want your live store to connect to your local database.

You should rather copy just the installedPlugins.json file to your ~/App_Data directory and create a new dataSettings.json file that will connect to your production database. That is if your production database is restored from a backup of your local database. If not, just install nopCommerce through the Install page.

Hope that helps!

Regards,
Anton
5 years ago
Thanks for your help Anton


the datasettings.json and installedPlugins.json files in App_Data on Azure are correct and point to the production database on a fast2host server but I still just get he install page.


Is it just these two files that tell nopCommerce that there is already a populated database?
5 years ago
Only datasettings.json stops the install
This topic was automatically closed 365 days after the last reply. New replies are no longer allowed.