mirror of
https://github.com/IRBorisov/ConceptPortal.git
synced 2025-06-26 04:50:36 +03:00
Update RunServer.ps1
This commit is contained in:
parent
44cc9371e4
commit
11b7914d37
|
@ -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 {
|
||||||
|
|
Loading…
Reference in New Issue
Block a user