Skip to content

skmichaelson/dotnet-core-2-for-cf

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

21 Commits
 
 
 
 
 
 
 
 

Repository files navigation

A Sample App Using the .NET Core 2.0 Runtime

This solution contains a sample ASP.NET core application that can run on Cloud Foundry installations.

Deployment

  1. Install the latest .NET SDK. The .NET cli is bundled with the SDK.

  2. Install npm. This is used to manage Bootstrap and its dependencies.

Set up Cloud Foundry

If you don't have access to a Cloud Foundry instance, install PCF Dev to deploy the application locally.

  1. Install the cf CLI.

  2. Log into Cloud Foundry:

    cf login [-a API_URL]

Publish the project
  1. Clone this repository:

    git clone https://github.com/skmichaelson/dotnet-core-2-for-cf.git

  2. Open the subdirectory for SampleWebApp in the Git repository:

    cd dotnet-core-2-for-cf/SampleWebApp

  3. Run npm install to populate the node modules.

  4. Publish the app to a known directory:

    dotnet publish -c Release -o ./publish -r linux-x64

Final steps
  1. Open the directory with your published files:

    cd publish

  2. Push to Cloud Foundry:

    cf push

Contributing

  1. Fork the repository
  2. Submit a pull request

Coming Soon

  1. Instructions on how to create new pages
  2. Include a section about different versions of .NET core
This page was last updated on April 25, 2018

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages