Fixed dotnet ef problem, Added a script to start the project and one for Ef

This commit is contained in:
Dominic Villemure
2024-03-17 16:20:43 -04:00
parent 78605ec840
commit 0f7cdb3abd
10 changed files with 994 additions and 367 deletions

18
Start.ps1 Normal file
View File

@@ -0,0 +1,18 @@
$password = $null
# Manually parse arguments for a "-p" flag
for ($i = 0; $i -lt $args.Count; $i++) {
if ($args[$i] -eq "-p" -and $args.Count -gt $i + 1) {
$password = $args[$i + 1]
break
}
}
# Check if we got a value for our environment variable
if ($null -ne $password) {
$Env:DB_PASSWORD = $password
}
# Run the app in the web dir.
Set-Location -Path ./src/Web
dotnet watch run