Question

Local development using a remote DB on a DO Droplet

Hi all!

My company has a workflow right now where 2+ developers may be working on one Wordpress site at the same time. Due to the nature of our setup, we have remote developers as well so we cannot just run a server within the office that everyone can work off, unfortunately.

Currently, to handle this, we have a remote database server that we all connect to via an ssh tunnel that binds to address 127.0.0.0:5555 locally. We then configure our WP Config files to use that address as well as the proper db name, username, password for the remote server.

This does work and allows for a secure connection to the database server, however, the second we start to actually add content, plugins, pages, etc, our page load speeds locally seem to plummet. I’m talking sometimes 10 - 20 seconds for a page to load. These databases aren’t getting large by any means, the largest we are working with is probably 100mb or less.

I’m wondering if anyone has a similar workflow, and has any suggestions on how we could improve this on our end. Should we ditch the SSL tunnel and opt for a different method to allow all of our developers to connect?

Appreciate any help or tips!


Submit an answer

This textbox defaults to using Markdown to format your answer.

You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!

Sign In or Sign Up to Answer

These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.

I would suggest your db issue is a config one. Can you post the contents of your my.cnf config file?

A

Great question @HelloCharlie

It reminds me of pre VM development, however working on a server in production, would not be something I would recommend,

I would say to your developers to setup a local instance of MySQL, you could go one step better and use docker to host and run Docker locally on each developers machines, using docker would make it very easy to keep versions the same as production.

https://www.digitalocean.com/community/tutorials/how-to-install-wordpress-with-docker-compose

Regards

Simon SnapShooter DigitalOcean Wordpress Backups SnapShooter