This repro contains Microsoft's ASP.NET MVC sample site adapted for my Octopus Deploy demos and talks. The original sources came from https://code.msdn.microsoft.com/ASPNET-MVC-Application-b01a9fe8.
I have adapted Microsoft's solution by splitting the MVC project into three:
- There is a project containing just the MVC site.
- A data project contains the Entitiy Framework
DbContext
, entities and migrations. - A core project contains code shared by the site and data access projects.
The master
branch is the starting point for my demos and talks.
The sample code used in my talks and on my blog can be found in the octopus-deploy
branch. Commit 6c40dc6
has all the detail of the Deploy.ps1
, custom .nuspec
file etc. that I use.
For a full write up, please see my blog post here: http://www.kevinkuszyk.com/2016/10/26/deploying-sql-databases-using-entity-framework-migrations-and-octopus-deploy.