diff --git a/.devcontainer/devcontainer.json b/.devcontainer/devcontainer.json index adeba26..ed27393 100644 --- a/.devcontainer/devcontainer.json +++ b/.devcontainer/devcontainer.json @@ -22,7 +22,7 @@ // Use 'postCreateCommand' to run commands after the container is created. // "postCreateCommand": "pip3 install --user -r requirements.txt", - "postCreateCommand": ". ./env/bin/activate; python -m pip install -r requirements.txt" + "postCreateCommand": "python -m venv env && . ./env/bin/activate && python -m pip install -r requirements.txt" // Configure tool-specific properties. // "customizations": {}, diff --git a/.dockerignore b/.dockerignore new file mode 100644 index 0000000..704b18b --- /dev/null +++ b/.dockerignore @@ -0,0 +1,7 @@ +.devcontainer/ +.vscode/ + +test_db.sqlite +env/ +**/__pycache__/ +slopserver/alembic/ \ No newline at end of file diff --git a/slopserver/server.py b/slopserver/server.py index 2b6ed40..7183d50 100644 --- a/slopserver/server.py +++ b/slopserver/server.py @@ -40,7 +40,7 @@ app = FastAPI() oauth2_scheme = OAuth2PasswordBearer(tokenUrl="token") class ServerSettings(BaseSettings): - db_url: str = "postgresql+psycopg2://slop-farmer@192.168.1.163/slop-farmer" + db_url: str = "sqlite+pysqlite:///test_db.sqlite" token_secret: str = "5bcc778a96b090c3ac1d587bb694a060eaf7bdb5832365f91d5078faf1fff210" # altcha_secret: str