openfoodfacts / openfoodfacts-server

Open Food Facts database, API server and web interface - 🐪🦋 Perl, CSS and JS coders welcome 😊 For helping in Python, see Robotoff or taxonomy-editor
GNU Affero General Public License v3.0
632 stars 370 forks source link

Consider splitting data directories #1395

Open hangy opened 5 years ago

hangy commented 5 years ago

Currently, the settings $www_root and $data_root are made up of static data (coming from this Git repository), pre-compiled data for each site (Lang_.pm), and ProductOpener's own data (.sto files for products, users, product images, …). For more advanced deployment scenarios, it could be interesting to have an option to split those up in configuration, so that those files could be placed on different volumes without having to place a lot of symlinks between otherwise unrelated volumes.

alexgarel commented 1 month ago

We added a Path.pm module to have better view on "top folders".

But the problem right now it's that it's very fragmented with a lot of symlink to get things into a structure.

There are 4 types of folders: