Moved scripts to root; Updated settings and tasks for VSCode.
This commit is contained in:
parent
4bafefa4dc
commit
3129e5e564
7
Props/.vscode/settings.json
vendored
Normal file
7
Props/.vscode/settings.json
vendored
Normal file
@ -0,0 +1,7 @@
|
|||||||
|
{
|
||||||
|
"todo-tree.filtering.excludeGlobs": [
|
||||||
|
"**/node_modules",
|
||||||
|
"**/wwwroot"
|
||||||
|
],
|
||||||
|
"todo-tree.regex.regex": "((//|#|<!--|@\\*|;|/\\*|^)\\s*($TAGS)|^\\s*- \\[ \\])"
|
||||||
|
}
|
2
Props/.vscode/tasks.json
vendored
2
Props/.vscode/tasks.json
vendored
@ -43,7 +43,7 @@
|
|||||||
"command": "py",
|
"command": "py",
|
||||||
"type": "process",
|
"type": "process",
|
||||||
"args": [
|
"args": [
|
||||||
"./scripts/reset_db.py"
|
"${workspaceFolder}/../scripts/reset_db.py"
|
||||||
],
|
],
|
||||||
"problemMatcher": []
|
"problemMatcher": []
|
||||||
}
|
}
|
||||||
|
@ -2,14 +2,14 @@ import os
|
|||||||
import shutil
|
import shutil
|
||||||
|
|
||||||
|
|
||||||
SERVER_DIR = "./"
|
DB_DIR = "./Props"
|
||||||
DATA_DIR = "Data"
|
DATA_DIR = "Data"
|
||||||
DB_MIGRATE_CMD = "dotnet ef migrations add InitialCreate -o {0}"
|
DB_MIGRATE_CMD = "dotnet ef migrations add InitialCreate -o {0}"
|
||||||
DB_UPDATE_CMD = "dotnet ef database update"
|
DB_UPDATE_CMD = "dotnet ef database update"
|
||||||
|
|
||||||
os.chdir(os.path.dirname(os.path.realpath(__file__)))
|
os.chdir(os.path.dirname(os.path.realpath(__file__)))
|
||||||
os.chdir("..")
|
os.chdir("..")
|
||||||
os.chdir(SERVER_DIR)
|
os.chdir(DB_DIR)
|
||||||
print("Working in: " + os.getcwd())
|
print("Working in: " + os.getcwd())
|
||||||
|
|
||||||
migrationsDir = os.path.join(DATA_DIR, "Migrations")
|
migrationsDir = os.path.join(DATA_DIR, "Migrations")
|
Loading…
Reference in New Issue
Block a user