⇤ ← Revision 1 as of 2024-08-08 19:23:44
Size: 162
Comment:
|
← Revision 2 as of 2024-08-08 20:19:13 ⇥
Size: 408
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:
- publish the app to a folder,
- Copy the folder to the server
- Setup the Environment variables
- Setup the server environment