Gokapi icon indicating copy to clipboard operation
Gokapi copied to clipboard

dedicated dir for database

Open avilabss opened this issue 1 year ago • 3 comments

As a resolution for issue #126, I've implemented a separation of the database and uploaded data folder into distinct directories. This modification is designed to enhance user flexibility by allowing them to effortlessly mount a NAS share in place of the data directory without introducing any complications with the database.

avilabss avatar Jan 02 '24 16:01 avilabss

Thank you for the pull request! Please make sure, that the tests run successfully (you might need to change some, if you have modified the database location). Let me know if you need help at any point

Forceu avatar Jan 02 '24 16:01 Forceu

Can you send some instructions on how to set this project up locally for development? Since the changes I made were kinda small, I just tested it by running the whole thing in docker but that won't cut it for doing proper tests.

avilabss avatar Jan 02 '24 17:01 avilabss

Simply clone the repository and execute go test ./... -parallel 8 --tags=test,awsmock in the top folder.

However if you are using Docker, it might be easier to simply mount the database file? You can mount single files as well, not just folders

Forceu avatar Jan 02 '24 19:01 Forceu

Will be superseded by #180, therefore closing this PR

Forceu avatar Jul 02 '24 21:07 Forceu

Added in b56970b

Forceu avatar Jul 07 '24 20:07 Forceu