Wp-config.php differences between DevKinsta & MyKinsta

Hello Matt :slight_smile:

When pulling (import) the site from MyKinsta to our local computer, DevKinsta would indeed automatically change the DB settings (DB_HOST to devkinsta_db , DB_NAME to its site DB name , DB_USER to root, and DB_PASSWORD to its root DB password) in the wp-config.php file - that would match with the “Database” details on the “Site info” page in DevKinsta.

We can also see this action in the application log file (main.log) - such like this for example:

[2023-02-23 07:35:33.449] [info] [dockerUtil/getContainer] Get ‘devkinsta_fpm’ Docker container
[2023-02-23 07:35:34.076] [info] [containerExec] Command ‘cd /www/kinsta/public/yoursitename && wp --allow-root --skip-themes --skip-plugins config set DB_HOST devkinsta_db && wp --allow-root --skip-themes --skip-plugins config set DB_PASSWORD ****** && wp --allow-root --skip-themes --skip-plugins config set DB_USER root && wp --allow-root --skip-themes --skip-plugins config set DB_NAME Your_Site_Name’ on devkinsta_fpm finished with exit code 0

then also, when pushing the local site (from DevKinsta) to MyKinsta (either to Premium Staging or Standard/free Staging), DevKinsta would automatically perform the WP CLI to set/update those DB settings (in wp-config.php file) back to match with the DB host/settings/credentials we have in MyKinsta.

In the main.log file, we can see such action like this as well for example:

[2023-02-23 07:37:32.625] [info] [dockerUtil/getContainer] Get ‘devkinsta_fpm’ Docker container
[2023-02-23 07:37:32.713] [info] [ProgressIndicator] { isFailed: false, isOpen: true }
[2023-02-23 07:37:32.756] [info] [ProgressIndicator] { isFailed: false, isOpen: true }
[2023-02-23 07:37:33.668] [info] [containerExec] Command ‘ssh siteusername@35.xxx.xxx.xxx -p 54643 -o “UserKnownHostsFile /dev/null” -o “StrictHostKeyChecking no” -o “PasswordAuthentication no” -o “ChallengeResponseAuthentication no” 'cd /www/siteusername_707/public && wp --allow-root --skip-themes --skip-plugins config set DB_HOST localhost && wp --allow-root --skip-themes --skip-plugins config set DB_PASSWORD ****** && wp --allow-root --skip-themes --skip-plugins config set DB_USER sitedb && wp --allow-root --skip-themes --skip-plugins config set DB_NAME sitedb’’ on devkinsta_fpm finished with exit code 0

I’m not sure how you and/or your coworker would be working on your site (created in DevKinsta) on GitHub - as DevKinsta doesn’t have an integration with GIT (or GitHub) currently and we won’t be able to provide support for that.
I could only tell how the default process works (import/pulling and pushing site) in DevKinsta as explained above. Perhaps based on the information above maybe your coworker (or your developers) have some ideas or workaround to get it work on GitHub :smiley:

Cheers,
Agus