admin管理员组文章数量:1122832
Hello WP DEV Community,
I understand this question has been asked ad nauseam...
I'm trying to customize a development workflow (WordPress + WooCommerce) that allows me to develop locally (to speed up development, see changes instantly in browser) -- then push to PROD.
After reading many StackExchange posts/articles/forums, this does not appear to be a trivial task.
I am hoping to gain some insights with the following question that will help me with the above goal. I am primarily trying to understand the specifics below (not necessarily how to go about designing the actual workflow). I have a few models already in mind. Understanding these details will assist in how I tailor my workflow -- along with some other things I hope to accomplish.
- Admin Panel:
Making WP config changes updates entries in the database only?
- Flatsome theme with UX Builder:
Making changes here appears to touch both the theme flat-files and the database (if you create new pages)?
- WooCommerce:
It appears that WooCommerce uses the WP DB/Tables (and not strictly it's own tables)?
"Products are a type of 'post,' meaning that you can migrate products between sites the same way you migrate posts. Products are stored in the database within the 'wp_posts' table, with meta data inside wp_postmeta."
I suspect that all customer accounts, comments etc are stored in the database as well (no flat-files are touched)?
The DB is live (constantly evolving) with updates by customers: new accounts, account changes, comments, orders etc.
There does not appear to be a clear (table-level) separation between WP core, Themes and WooCommerce?
Given the above, is it possible to export specific (non WooCommcerce) tables from the PROD DB and import to the DEV DB > make theme-level/WP changes > push flat-files/import specific tables back to PROD without without destroying anything in PROD?
Thanks!
Hello WP DEV Community,
I understand this question has been asked ad nauseam...
I'm trying to customize a development workflow (WordPress + WooCommerce) that allows me to develop locally (to speed up development, see changes instantly in browser) -- then push to PROD.
After reading many StackExchange posts/articles/forums, this does not appear to be a trivial task.
I am hoping to gain some insights with the following question that will help me with the above goal. I am primarily trying to understand the specifics below (not necessarily how to go about designing the actual workflow). I have a few models already in mind. Understanding these details will assist in how I tailor my workflow -- along with some other things I hope to accomplish.
- Admin Panel:
Making WP config changes updates entries in the database only?
- Flatsome theme with UX Builder:
Making changes here appears to touch both the theme flat-files and the database (if you create new pages)?
- WooCommerce:
It appears that WooCommerce uses the WP DB/Tables (and not strictly it's own tables)?
"Products are a type of 'post,' meaning that you can migrate products between sites the same way you migrate posts. Products are stored in the database within the 'wp_posts' table, with meta data inside wp_postmeta."
I suspect that all customer accounts, comments etc are stored in the database as well (no flat-files are touched)?
The DB is live (constantly evolving) with updates by customers: new accounts, account changes, comments, orders etc.
There does not appear to be a clear (table-level) separation between WP core, Themes and WooCommerce?
Given the above, is it possible to export specific (non WooCommcerce) tables from the PROD DB and import to the DEV DB > make theme-level/WP changes > push flat-files/import specific tables back to PROD without without destroying anything in PROD?
Thanks!
Share Improve this question asked Aug 27, 2020 at 21:32 XMANXMAN 11 bronze badge 02 Answers
Reset to default 0I'll update this answer periodically over time as I lean more about the platform. This link speaks directly to what I've mentioned above:
The WordPress Database Structure
Edit (pretty much answers everything else):
https://cadent.com/use-git-to-develop-a-wordpress-site-with-a-team-of-coders/
I recommend you to use wp-env
for your local env: https://www.npmjs.com/package/@wordpress/env. It requires Docker to be installed.
wp-env
lets you easily set up a local WordPress environment for building and testing plugins and themes. It's simple to install and requires no configuration.
本文标签: woocommerce offtopicWordPress Development Workflow
版权声明:本文标题:woocommerce offtopic - WordPress Development Workflow 内容由网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:http://www.betaflare.com/web/1736301720a1931273.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。
发表评论