Database should be in a different directory #23
Loading…
x
Reference in New Issue
Block a user
No description provided.
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
It would be much easier to ensure the db is saved if it were in it's own directory.
This would also allow for the db to be a volume in a k8s instance.
The proposed fix would be to set all instances of "app.db" in app.py and db.py to "db/app.db"
I have tested that this solution works in my k8s cluster.
Agreed, although I would go a step further and move all user-data into a single folder. This has multiple benefits:
Also, it looks like the *.csv files that are downloaded in the /app directory and possibly the entirety of the /app/static directory should also be mounted to an external volume to allow the data to survive container updates.
Indeed it should. I will probably fix this when i cleanup the code and refactor it.
I would like to +1 this since I am using a docker swarm setup with NFS mounts and there I cannot mount a file directly. If you need help testing I would volunteer with said docker swarm.
FYI, this will be part of #8.
This is implemented in
e2425a106a