[ad_1]
I’m about to start a wordpress blog development with 2 more people and we want to share the code via gitlab, what is the better way to do this? sending all wordpress stuffs or only the theme folder? how can they access the same db(generated by Local by flywheel) as me?
[ad_2]
You could theoretically add the entire /app/ directory (with appropriate git ignore)
>I’m about to start a wordpress blog development with 2 more people and we want to share the code via gitlab, what is the better way to do this? sending all wordpress stuffs or only the theme folder? how can they access the same db(generated by Local by flywheel) as me?
The DB issue is one that I’m yet to solve in any meaningful way. Basically I just replay local stuff on prod manually, or if it’s not just simple tweaks, I’ll do it directly on prod. WordPress just doesn’t lend itself to this.
As far as git goes, I think of WordPress core as a dependency and recommend using composer to manage it. WP itself doesn’t need to be in the repo. The theme is really the main thing that should be version controlled, and maybe plugins depending on your setup. Your deployment script can run composer to install core and plugins (if you utilize e.g. wp packagist for plugins).