Deploy GitHub source code repositories to an Azure App Service

This topic was automatically closed 365 days after the last reply. New replies are no longer allowed.
6 years ago
I can not install nopcommerce 4.00 from github. This is the error message.



The source won't compile.

Any solution?
6 years ago
Hello, unfortunately, we have only one branch compatible with the installation into the azure, its name is "azure-depoyment-package". It contains the code for 3.90, we will update it soon. You can't install nopCommerce to the azure from other branches.
6 years ago
Actually, it is possible, IF you use something like VSTS as an intermediary, which is usually better as you can (but don't have to) fork the repo first so you can make your changes in private.

My process is something like this:

Build Definition

Name: nopcommerce-CI

Process:
Get Sources: GitHub

Phase 1:
Use Nuget 4.3.0
Nuget Restore
Build solution: MSBuildArgs: /p:DeployOnBuild=true /p:WebPublishMethod=Package /p:PackageAsSingleFile=true /p:SkipInvalidConfigurations=true /p:DesktopBuildPackageLocation="$(build.artifactstagingdirectory)\WebApp.zip" /p:DeployIisAppPath="Default Web Site"
Publish Artifacts: path: $(build.stagingdirectory)


Release Definition

Environment Name: Test Environment
Tasks:
Deploy Azure App Service: package or folder: $(System.DefaultWorkingDirectory\**\*.zip

Remember to link the artefact output from the build process to the environment

I also perform json variable substitution in the release process but out of the box nop doesn't output datasettings.json so I had to change it to an embedded resource in my own branch.

I might create a decent tutorial for this at some point, and all of this could be done with travis or appveyor if preferred,...
This topic was automatically closed 365 days after the last reply. New replies are no longer allowed.