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:
- publish the app to a folder,
- Copy the folder to the server
- Setup the Environment variables
- Setup the server environment