Skip to content

gmzdev/MinimalAspNetCoreStaticWebsite

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Minimal ASP.Net Core Static Website

An ASP.Net Core program with minimal settings for a static website.

Publishing on Heroku with Docker

Clone this repo into new folder(e.g., min-aspnetcore)

$ git clone https://github.com/gmzdev/MinimalAspNetCoreStaticWebsite min-aspnetcore

$ cd min-aspnetcore

Build the project

$ dotnet restore

$ dotnet build

Publish the project to ./app folder

$ dotnet publish -o app

Deploying to Heroku, make sure Docker is installed on your system.

Login to registry container with the following command:

$ heroku container:login

Create a new min-aspnetcore or your desired app name in Heroku

$ heroku create min-aspnetcore

Build the image and push to Container Registry

$ heroku container:push web

Open the app in your browser

$ heroku open

Sample Published Site https://min-aspnetcore.herokuapp.com/

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published