= Deploy C# Web App with Code First Database =

What if you need to create the database elsewhere first? The following code will generate a script to run on the production server. 

{{{
dotnet ef Migrations script > [filename]
}}}

All that is left is to:

 1. publish the app to a folder, 
 1. Copy the folder to the server
 1. Setup the Environment variables
 1. Setup the server environment