Skip to content

Commit

Permalink
Closes #60
Browse files Browse the repository at this point in the history
Add information about working with migrations in README
  • Loading branch information
mtracewicz committed Sep 27, 2024
1 parent a2854cc commit ed90653
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -65,3 +65,8 @@ docker compose --profile without-hot-reload up --build --watch
The `--watch` parameter starts containers with the `hot-reload` feature. This enables the auto-reload functionality, meaning that the container will be automatically reloaded when the code for either the frontend or backend changes.

> The `hot-reload` feature for backend applications uses `dotnet watch`, which only detects changes to existing files. It will not restart the container if new files are added (dotnet watch [issue](https://github.com/dotnet/aspnetcore/issues/8321)).
### DB Migrations
When working with migrations remember to add parameter for project and startup project.
For example when generating a new migration while in backend directory:
`dotnet ef migrations add -p ./src/infrastructure -s ./src/api "Example"`

0 comments on commit ed90653

Please sign in to comment.