Update RunServer.ps1

This commit is contained in:
IRBorisov 2023-07-29 15:37:52 +03:00
parent 44cc9371e4
commit 11b7914d37

View File

@ -35,8 +35,11 @@ function RunFrontend() {
} }
function FlushData { function FlushData {
& $pyExec $djangoSrc flush --no-input & $pyExec $djangoSrc flush --no-input\
Remove-Item $PSScriptRoot\backend\db.sqlite3 $dbPath = "$PSScriptRoot\backend\db.sqlite3"
if (Test-Path -Path $dbPath -PathType Leaf) {
Remove-Item $dbPath
}
} }
function AddAdmin { function AddAdmin {