Skip to content
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

Allow installing a specific profile #43

Closed
e0ipso opened this issue Jun 16, 2017 · 1 comment
Closed

Allow installing a specific profile #43

e0ipso opened this issue Jun 16, 2017 · 1 comment

Comments

@e0ipso
Copy link
Contributor

e0ipso commented Jun 16, 2017

It seems that the template does not allow to specify a profile different from the default one (standard).

$defaultTemplate = 'drush site-install --yes --account-mail={account-mail} --account-name={account-name} --account-pass={account-pass} --site-mail={site-mail} --site-name={site-name}';

It would be great to allow selecting the profile.

@greg-1-anderson
Copy link
Member

The line you are interested is a couple up:

return $composer_json['extra']['build-env']['install-cms'];

For an example of this in action:

https://github.com/pantheon-systems/example-drops-8-composer/blob/master/composer.json#L79

and

https://github.com/pantheon-systems/example-drops-8-composer/blob/master/web/sites/default/settings.php#L40

(You're going to have to pretend those lines say something other than 'standard', because I haven't updated pantheon-systems/example-drops-8-composer#33 in a while.)

If you describe your profile in your template project in those two places, then it will be used.

Having a single template projects that contains multiple profiles is not supported. Make one template project per profile.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants