You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Enter conection and type the DatabaseName then click to publish to the machine of the Data tier
Deploy the Application tier
Run the Scaffolding command to map database to the code via EF Core.
Below is a sample command, just replace your params on SERVER/DATABASE/USER/PASSWORD.
Scaffold-DbContext "Data Source=SERVER;Initial Catalog=DATABASE;Persist Security Info=True;User ID=USER;Password=PASSWORD;MultipleActiveResultSets=True" Microsoft.EntityFrameworkCore.SqlServer -OutputDir Entities -ContextDir Context -Context DemoContext -f
Next, open appsettings.json
Update your connection string to the deployed database
Update your CORS value for the deployed Presentation tier (You can update after deploy the Presentation tier by replace value of CORS then restart the site)
Deploy the code to the machine of the Application tier
Deploy Presentation tier
run "npm install"
Open environment.prod.ts, update baseUrl to hosted address of Application tier
run "npm run build"
Go to dist folder and copy all Code
Deploy the code to the machine of Presentation tier