Closed eby closed 8 years ago
Yeah, this is an excellent idea for anyone who might use this.
SQLAlchemy will create the database schema on startup, but (as you discovered) only if the directory exists. I added some code so the app will check to make sure the needed directories exits, and create them if they don't: https://github.com/steiza/docstore/commit/07bfe8a50ffd4526dc351a4e91e824389ec1bc45
I found docstore doesn't create the needed storage directory which causes an error. I've created the needed directories along with an empty sqlite database with the needed schema. This should let you clone docstore and having a running instance right away. I tweaked the gitignore to ignore uploaded docs and the production database.
If this would be better solved with bootstrap code to create directorys and db so any database changes are ran then feel free to go that route instead.