Add 'backend/' from commit '040cfd7a75423d4e6136e58a67b40579af4ee966'
git-subtree-dir: backend git-subtree-mainline:ab911955edgit-subtree-split:040cfd7a75
This commit is contained in:
18
backend/Start.ps1
Normal file
18
backend/Start.ps1
Normal 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
|
||||
Reference in New Issue
Block a user