| 15:48 | symbioquine[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:50 | symbioquine[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:52 | paul121[m] | I don't think we added anything to do that.. but should be in the docs? |
| 15:53 | paul121[m] | docs.farmos.org/development/environment/ |
| 15:54 | paul121[m] | Maybe it should be included in the "hosting" docs too |
| 15:55 | symbioquine[m] | paul121[m]: Oh, yeah. That's what I need... :) |
| 15:57 | paul121[m] | Maybe we need a Drupal hosting 101 page. There's probably other general Drupal things that could be lumped together |
| 15:59 | symbioquine[m] | I'd argue that file uploads should work out of the box with a trivial `docker-compose.yml` file. |
| 19:38 | mstenta[m] | Hey just seeing this |
| 19:38 | mstenta[m] | I think the challenge with private file path is it needs to be added to settings.php, which Drupal generates during install |
| 19:39 | mstenta[m] | I wonder if we could add an install step that does that 🤔 |
| 19:40 | mstenta[m] | Or maybe there's some other way we can set that outside of settings.php - as a default fallback at least |
| 19:41 | mstenta[m] | Either way I agree we should mention it in the hosting docs 👍 |
| 19:42 | mstenta[m] | At the bottom of docs.farmos.org/hosting/install/ probably |
| 19:43 | paul121[m] | Reminds me of the drupal/core-composer-scaffold plugin - read these docs recently: github.com/drupal/core-composer-scaffold |
| 19:43 | paul121[m] | It seems possible to overwrite the settings.php |
| 19:43 | mstenta[m] | Ah perhaps |
| 19:43 | paul121[m] | that's prob too much - but appending would be cool? |
| 19:44 | mstenta[m] | But the composer install happens before the settings.php is created. I think that's the main issue |
| 19:44 | mstenta[m] | Yea I wonder if we could use a hook install tasks |
| 19:45 | mstenta[m] | s/a hook install tasks/hook_install_tasks()/ |
| 19:45 | mstenta[m] | That might fire after settings.php is created |
| 19:45 | mstenta[m] | But... |
| 19:45 | mstenta[m] | We can't assume that everyone is using docker |
| 19:45 | mstenta[m] | So the absolute path might be different |
| 19:46 | mstenta[m] | (path to the private files) |
| 19:46 | mstenta[m] | I think that's why it might need to be a manual step |
| 19:47 | mstenta[m] | a) in docker contexts we know the path but settings.php doesn't exist yet |
| 19:47 | mstenta[m] | b) in hook install we have settings.php but we can't assume the path |
| 19:48 | mstenta[m] | (there might be a clever solution) :-) |
| 19:48 | mstenta[m] | But at the very least let's document the manual step |
| 20:00 | paul121[m] | maybe a composer script: getcomposer.org/doc/articles/scripts.md |
| 20:00 | paul121[m] | on the `post-drupal-scaffold-cmd` hook: github.com/drupal/core-composer-scaffold |
| 20:01 | paul121[m] | don't know much about these composer scripts, but seems useful. kinda like a docker entrypoint? |
| 23:07 | * | farmBOT has joined |