Deploying an app to LCC
When you have finished developing and testing your app in your development environment, you need to deploy it to Litium Commerce Cloud (LCC) to make it available to others. LCC currently only supports apps built on .NET.
To be able to to deploy your app, you need to contact Litium to obtain an AppName that will be used to identify your app. You should also provide us with the Litium developer account that should have access to upload your app to our NuGet.
Upload your app to Litium
- Download Octupus CLI, if it is not already available. Install Octupus CLI as a .NET Core tool (this is only needed once per machine):
dotnet tool install --global Octopus.DotNet.Cli
- Publish the app end set a version number:
dotnet publish -c Release .\path\ProjectName.csproj -o publish -p:version=1.0.0
NOTE: You can not overwrite an previously published version. You must increase the version number for each new release.
- Create a NuGet package using octo-pack:
dotnet octo pack --basePath=publish --outFolder=builds --id=AppName --version="1.0.0"
NOTE: Replace AppName with the app name that you received from Litium.
- Verify that the app can be run as a IIS website. Configuration should be run in the folder
..\AppConfig relative to the path where the application is run. ThIs is to be able to separate the application and user configuration. Please make sure to verify that this works before uploading the package to Litium NuGet.
- Upload the package to Litium, using the Litium account that was given upload access. The package can only be downloaded by the same user account that uploaded it, and Litium.
nuget push .\builds\AppName.1.0.0.nupkg -Source https://nuget.litium.com/nuget
- Notify Litium about the new version (including the version number) and we will start the process to make the app available to other users.
Please note that prereleases and test versions of your app need to be designated as beta in your version number. Example: 1.0.0-beta-01.