Skip to content
Discussion options

You must be logged in to vote

Not for a deployment. SQLite is fine for a local uvicorn run and for development, and the test suite runs on it. Keep compose's db service on a server that families depend on.

  • Vercel and the host target do not run on it. Both refuse to start on the SQLite default DATABASE_URL, and neither installs aiosqlite.
  • On SQLite, compose keeps the file inside the container. The default sqlite+aiosqlite:///./lessons.db resolves to /srv/lessons.db in the server container, and no volume is mounted there. The next docker compose up -d --build after a code change creates a new container, and so does docker compose down. Either way the class's data is gone.
  • To remove db, you must do more than delete the …

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by lumenpearson
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
area:server area:db for:operator Whoever runs a server or builds and signs an APK of their own
1 participant