OpsCaptain can deploy .NET Core apps using the Cloud Foundry dotnet-core-buildpack. From the developers perspective, you simply deploy your code using the CLI and OpsCaptain configures the environment to compile your code, install dependencies and make it ready to run. If you are interested in understanding how the buildpack works such as specifying the .NET framework version etc, reference the buildpack documentation page. OpsCaptain provides a Cloud Foundry compatible environment on your servers so you can run your .NET Core applications effortlessly.
To review the supported .NET framework versions, you can review the buildpack releases here
Install the opscaptain-cli on your local machine and also log in. If you haven't, run the below commands from your terminal to install it and login:
You must have already added the server that will be used to host your .NET Core app. To add a server to your OpsCaptain account, follow this guide here.
From the dashboard: Log into the dashboard and create a new app using this link. Select the required database engine. If your app does not require a database, do not make a selection. Once the app and database are created, you can then proceed to deploy your code to it.
You will typically configure the ocmanifest.json file on your first deployment or when you need to change any environment variables.
The below example shows a sample ocmanifest.json file to deploy .NET Core apps:
CD into the project directory. Once there, run the below command to deploy and that's it.