sis_developer_manual
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
sis_developer_manual [2024/03/11 01:50] – [Deploying the Backend] ghachey | sis_developer_manual [2024/12/09 08:45] (current) – [Database Upgrades] ghachey | ||
---|---|---|---|
Line 139: | Line 139: | ||
==== Database Upgrades ==== | ==== Database Upgrades ==== | ||
- | Database upgrades are done using the .NET EntityFrameworkCore migrations. When a new migration is made available typically in the source code you'll need to apply the migration. | + | Database upgrades are done using the .NET EntityFrameworkCore migrations. When a new migration is made available typically in the source code you'll need to apply the migration. |
- | + | ||
- | < | + | |
- | PM> Update-Database -Project opensis.data -Context CRMContextMySQL | + | |
- | Build started... | + | |
- | Build succeeded. | + | |
- | Applying migration ' | + | |
- | Done. | + | |
- | </ | + | |
- | + | ||
- | A developer also suggested another by " | + | |
- | + | ||
- | <note important> | + | |
<code csharp> | <code csharp> | ||
Line 184: | Line 172: | ||
</ | </ | ||
- | </note> | + | With the above configured the upgrade will run automatically by loading the application. Another way is to open the Package Manager Console within Visual Studio and run something like the following. |
+ | |||
+ | < | ||
+ | PM> Update-Database -Project opensis.data -Context CRMContextMySQL | ||
+ | Build started... | ||
+ | Build succeeded. | ||
+ | Applying migration ' | ||
+ | Done. | ||
+ | </code> | ||
+ | |||
+ | A developer also suggested another by " | ||
==== Building and Running Backend ==== | ==== Building and Running Backend ==== | ||
Line 270: | Line 268: | ||
This should package all the frontend files in '' | This should package all the frontend files in '' | ||
+ | ==== Deploying to Production Server ==== | ||
+ | |||
+ | Is a matter of preference. You could simply copy the files produced in the two previous steps and configure the Apache Server to server them. The database will need to also be deployed. One of the maintainers of the system uses Ansible to automate all of these final deployment tasks. |
sis_developer_manual.1710121816.txt.gz · Last modified: 2024/03/11 01:50 by ghachey