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

Fix #563 - Improve remote databases #573

Merged
merged 1 commit into from
Apr 30, 2016
Merged

Conversation

swalkinshaw
Copy link
Member

Previously you had to manually toggle the remote database option via
mysql_remote_database (which also didn't fully work).

Now Trellis automatically detects if the sites are using a remote
db_host or not (aka not localhost) and handles things accordingly.

This also installs the mysql-client now regardless.

@swalkinshaw swalkinshaw force-pushed the improve-remote-databases branch 2 times, most recently from f570160 to 30d98d1 Compare April 23, 2016 02:48
Previously you had to manually toggle the remote database option via
`mysql_remote_database` (which also didn't fully work).

Now Trellis automatically detects if the sites are using a remote
`db_host` or not (aka not `localhost`) and handles things accordingly.

This also installs the mysql-client now regardless.
@swalkinshaw swalkinshaw force-pushed the improve-remote-databases branch from 30d98d1 to 255c461 Compare April 30, 2016 00:29
@swalkinshaw swalkinshaw merged commit a008f2f into master Apr 30, 2016
@swalkinshaw swalkinshaw deleted the improve-remote-databases branch April 30, 2016 00:31
@ph4un00b
Copy link

@swalkinshaw that skips the tasks also if 127.0.0.1 is defined, that was confusing and time-consuming to see 🐼

@@ -0,0 +1 @@
site_uses_local_db: "{{ site_env.db_host == 'localhost' }}"

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

guess we can put "127.0.0.1" also? 😄

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We could. I kind of thought about that but figured there's no reason for anyone to put 127.0.0.1? Trellis configures localhost automatically.

Want to do a PR?

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

Successfully merging this pull request may close these issues.

2 participants