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

Only run enable_first build commands the first time an env is enabled #85

Open
jlyon opened this issue Aug 14, 2015 · 2 comments
Open

Comments

@jlyon
Copy link
Contributor

jlyon commented Aug 14, 2015

https://github.com/terra-ops/terra-ui-prototype has

drush {{alias}} site-install standard --db-url=mysql://drupal:drupal@database/drupal -y

in the enable_first section of .terra.yml.

Currently on my localhost, re-enabling an existing environment runs these commands and my Drupal db gets wiped. Perhaps a flag isn't getting set properly somewhere?

@jonpugh
Copy link
Member

jonpugh commented Aug 15, 2015

Yeah... I never finished this part!

We need some way to detect that the environment has never been enabled before! I am not sure how yet, would love help on this, and should probably just revert back to "enable" to not make people think they are safe to have this hook reinstall the site.

@jlyon
Copy link
Contributor Author

jlyon commented Sep 6, 2015

How about checking if drush status throws errors?

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