After installing Aegir, if one navigates to Platforms » Add platform, the only option for platform installation is:
- Deploy from makefile
This is problematic because:
- Nobody actually uses Drush Make anymore for maintaining Drupal sites.
- No modern options are available.
- There's no indication anywhere on the form that additional options (a) are available and (b) need to be enabled.
Proposal
1. Provide modern options for creating platforms on installation immediately after Aegir installation by enabling the following by default:
- Composer Deploy via Packagist [
hosting_platform_composer
] - Composer Deploy via Git [
hosting_platform_composer_git
] - Git Deploy (without Composer) [
hosting_platform_git
]
It should be noted that Git Deploy (hosting_platform_git
) is a safer default than Aegir Hosting Git (hosting_git
) because the former doesn't allow dangerous operations (e.g. git pulling). If folks actually want to enable these types of things, they can do so by opting in, enabling the other Git module.
These modules depend on Aegir Deploy, which cleans up the Create Platform form, so it'll be enabled automatically.
2. Indicate that other deployment strategies are available and can be enabled.
Discussion and feedback would be appreciated.
Comment | File | Size | Author |
---|---|---|---|
#5 | hostmaster-3051058-enable_git_and_composer_platform_options_by_default.patch | 809 bytes | colan |
Comments
Comment #2
colanAdded clarification about why we should choose one Git module over the other.
Comment #3
ergonlogicNot Drupal 8, but I believe it's still pretty standard for D7 sites, which'll still be around for a few more years.
I don't think "Composer Deploy via Packagist" is particularly relevant for most users. So I'd suggest dropping that one.
Comment #4
helmo CreditAttribution: helmo at Initfour websolutions for Aegir Cooperative commentedI also do believe makefiles are still used in D7 workfows ... but agree that it's time to have more options by default enabled.
Comment #5
colanI added two from the list above, leaving out the Packagist one. I didn't touch the makefile one; so that should still be there.
Comment #7
colanWorks well in the Aegir dev VM.
Comment #9
colanFor future reference, I added a link to the docs (for more info & adding other methods) on the Add Platform page. See https://git.drupalcode.org/project/hosting_deploy/commit/51515e3 for details.