-
-
Notifications
You must be signed in to change notification settings - Fork 7
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Modules directory best practice #7
Comments
Good questions @paul121... and somewhat relevant comment here worth linking in: #3 (comment) It's a bit tricky...
This is only the case for modules pulled in via Composer. Not everyone uses a Composer-based approach to installing/hosting farmOS. And in those cases (assuming they are using Docker), is to bind-mount the I think that's still the best approach for non-Composer-based installations. You can't really bind-mount the root However, I recently stumbled upon a pretty nasty core issue with using In either case, maybe we need to make it more clear in our docs what the different considerations are, depending on how you are hosting/installing farmOS. Or maybe we just need to finally add some "officially supported" documentation for Composer-based installs. |
Hmm yeah that is tricky.. not using a composer-based approach seems like it will cause headaches down the road... but alas...
Yeah, I guess this would be the best solution then. To a certain degree I feel that the documentation is incorrect/mis-leading for anyone using composer. |
Depends on the use-case. For advanced deployments, where you are maintaining multiple contrib modules, and custom modules, Composer makes the most sense. But that's not going to be most of the audience. We need to be able to support the simple "drop in this container and point it at this directory for persistence" workflow. The only headache I foresee there is that Drupal core issue I linked to... but ideally that will be fixed upstream.
It is, I agree - because we don't "officially" support Composer-based workflows (yet). :-) I would love to though... someone else asked about this in the chat today, and I suggested we start a forum topic to discuss best practices. |
Closing this because we have Composer documentation now: https://farmos.org/hosting/composer/ |
From our module development documentation: https://farmos.org/development/module/#modules-directory
But this composer-project places all
drupal-module
composer dependencies intoweb/modules
:composer-project/composer.json
Line 29 in eb17507
Is there an easy way to distinguish farmOS modules and update this composer project to place them into
sites/all/modules/farm
instead?It seems that
web/sites/all/modules
is a convention from Drupal 6/7, andweb/modules
is new with Drupal 8. From https://www.drupal.org/docs/creating-custom-modules/naming-and-placing-your-drupal-module:Given this, I'm curious if we should update our documentation/best practice to place modules into
web/modules
instead (in which case this issue may be in the wrong repo 😄 ). It seems like this requires less configuration and is more aligned with current drupal practices.The text was updated successfully, but these errors were encountered: