This commit is contained in:
Jack Case
2025-10-30 01:55:18 +00:00
parent b35c92b96f
commit ea843597aa
3 changed files with 9 additions and 2 deletions

View File

@@ -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": {},

7
.dockerignore Normal file
View File

@@ -0,0 +1,7 @@
.devcontainer/
.vscode/
test_db.sqlite
env/
**/__pycache__/
slopserver/alembic/

View File

@@ -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