Differences between revisions 1 and 2
Revision 1 as of 2024-08-08 19:23:44
Size: 162
Editor: scot
Comment:
Revision 2 as of 2024-08-08 20:19:13
Size: 408
Editor: scot
Comment:
Deletions are marked like this. Additions are marked like this.
Line 3: Line 3:
What if you need to create the database elsewhere first? What if you need to create the database elsewhere first? The following code will generate a script to run on the production server.
Line 8: Line 8:

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

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,
  2. Copy the folder to the server
  3. Setup the Environment variables
  4. Setup the server environment

DeployWebApp (last edited 2024-08-08 20:19:13 by scot)