< 012021-10-02⋎03 >

Topic for #farmOS is: farmOS (farmos.org) is a free and open source, web-based farm management system. User guide: farmos.org/guide/ - Forum: farmOS.discourse.groupSet by mstenta on 2021-06-15 at 12:52
15:48symbioquine[m]The private file system path is supposed to be set automatically in farmOS 2.x right?
15:49*uploaded an image: (186KiB) < libera.ems.host/_matrix/media/r0/downloa >
15:50symbioquine[m]^ That's what I got with a fresh install on the latest image - though I'm just now testing image uploads again so it might have been this way for a while... :)
15:52paul121[m]I don't think we added anything to do that.. but should be in the docs?
15:53paul121[m]docs.farmos.org/development/environment/
15:54paul121[m]Maybe it should be included in the "hosting" docs too
15:55symbioquine[m]paul121[m]: Oh, yeah. That's what I need... :)
15:57paul121[m]Maybe we need a Drupal hosting 101 page. There's probably other general Drupal things that could be lumped together
15:59symbioquine[m]I'd argue that file uploads should work out of the box with a trivial `docker-compose.yml` file.
19:38mstenta[m]Hey just seeing this
19:38mstenta[m]I think the challenge with private file path is it needs to be added to settings.php, which Drupal generates during install
19:39mstenta[m]I wonder if we could add an install step that does that 🤔
19:40mstenta[m]Or maybe there's some other way we can set that outside of settings.php - as a default fallback at least
19:41mstenta[m]Either way I agree we should mention it in the hosting docs 👍
19:42mstenta[m]At the bottom of docs.farmos.org/hosting/install/ probably
19:43paul121[m]Reminds me of the drupal/core-composer-scaffold plugin - read these docs recently: github.com/drupal/core-composer-scaffold
19:43paul121[m]It seems possible to overwrite the settings.php
19:43mstenta[m]Ah perhaps
19:43paul121[m]that's prob too much - but appending would be cool?
19:44mstenta[m]But the composer install happens before the settings.php is created. I think that's the main issue
19:44mstenta[m]Yea I wonder if we could use a hook install tasks
19:45mstenta[m]s/a hook install tasks/hook_install_tasks()/
19:45mstenta[m]That might fire after settings.php is created
19:45mstenta[m]But...
19:45mstenta[m]We can't assume that everyone is using docker
19:45mstenta[m]So the absolute path might be different
19:46mstenta[m](path to the private files)
19:46mstenta[m]I think that's why it might need to be a manual step
19:47mstenta[m]a) in docker contexts we know the path but settings.php doesn't exist yet
19:47mstenta[m]b) in hook install we have settings.php but we can't assume the path
19:48mstenta[m](there might be a clever solution) :-)
19:48mstenta[m]But at the very least let's document the manual step
20:00paul121[m]maybe a composer script: getcomposer.org/doc/articles/scripts.md
20:00paul121[m]on the `post-drupal-scaffold-cmd` hook: github.com/drupal/core-composer-scaffold
20:01paul121[m]don't know much about these composer scripts, but seems useful. kinda like a docker entrypoint?
23:07*farmBOT has joined

< 012021-10-02⋏03 >