Hello Matt
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
Cheers,
Agus