legacy-cli icon indicating copy to clipboard operation
legacy-cli copied to clipboard

Add app:init command

Open Crell opened this issue 9 years ago • 1 comments

This PR replaces #467, as that one is from a 3rd party repo so I couldn't push to it.

Adds an "app:init" command, which will add viable if generic .platform* files to a repository.

Current status: The command runs and produces files, enough to allow it to be pushed by Git. The routing.yaml file is functional. The .platform.app.yaml file is not. The services.yaml file has some examples commented out, with instructions and a link to the documentation.

  • [ ] Allow init from examples, as a shortcut
  • [x] Routing
  • [ ] Services/relationships
  • [ ] Web/locations configuration
  • [ ] Mounts
  • [ ] Build flavors
  • [ ] Disk size(s)
  • [ ] More complicated things: hooks, dependencies, extensions, crons

Crell avatar Jul 14 '16 21:07 Crell

@pjcdawkins Thought: Should we be treating each language/version as a target, or should we be treating each stack as a target? Damien is right that a wizard to build up the full, say, Drupal 8 configuration is going to be way way too complicated. But, instead of options "php 5.5", "php 5.6", "nodejs" etc. we could offer "Generic PHP", "Drupal 7', "Drupal 8", "Symfony 3", "Generic NodeJs", etc. Those files would be FAR more consistent, and the customization rather trivial (just relationships, basically).

Some customization is still likely appropriate by the user, but far less than if we left out, say, the entire rules section. It would also allow us to almost entirely eliminate the "generic $language" example repositories, or else make them simply an artifact of this script.

Does that seem reasonable?

Crell avatar Jul 29 '16 21:07 Crell