blogifierdotnet / Blogifier

Blogifier is an open-source publishing platform Written in ASP.NET and Blazor WebAssembly. With Blogifier make a personal blog or a website.
https://blogifier.net
MIT License
1.26k stars 518 forks source link

Move all data files to one location #302

Closed marcoregueira closed 1 year ago

marcoregueira commented 2 years ago

Hi

I've just found your project and liked it a lot. I need to put a small blog up and running, and this project meets almost my requirements, good work!

I'll be making some changes to ease deployment and make it work for me. I'll be contributing some of them if you're ok with it.

I've noticed that user uploaded files are stored under www/data, while the SQLite database file is on the application's root.

I think having all data files together would ease deployment, backups, and mounting volumes with docker.

I moved the database file and the upload folder to a new directory called Data and used redirection to publish the files without reconfiguring paths on the interface. There should not be any noticeable difference other than the directory structure.

I think you will find it ok. Please, tell me if you need some changes. I have some other pull requests to send if you agree.

dorthl commented 1 year ago

Hello, these functions have been implemented in the dev branch, and it provides simultaneous support for multiple databases, and will be merged into the main branch soon, thank you for your contribution.