This solution contains a sample ASP.NET core application that can run on Cloud Foundry installations.
-
Install the latest .NET SDK. The .NET cli is bundled with the SDK.
-
Install npm. This is used to manage Bootstrap and its dependencies.
If you don't have access to a Cloud Foundry instance, install PCF Dev to deploy the application locally.
-
Install the cf CLI.
-
Log into Cloud Foundry:
cf login [-a API_URL]
-
Clone this repository:
git clone https://github.com/skmichaelson/dotnet-core-2-for-cf.git
-
Open the subdirectory for SampleWebApp in the Git repository:
cd dotnet-core-2-for-cf/SampleWebApp
-
Run
npm install
to populate the node modules. -
Publish the app to a known directory:
dotnet publish -c Release -o ./publish -r linux-x64
-
Open the directory with your published files:
cd publish
-
Push to Cloud Foundry:
cf push
- Fork the repository
- Submit a pull request
- Instructions on how to create new pages
- Include a section about different versions of .NET core