Home / Companies / Upsun / Blog / Post Details
Content Deep Dive

Bedrock for modern WordPress development

Blog post from Upsun

Post Details
Company
Date Published
Author
Chad Carlson
Word Count
2,028
Language
English
Hacker News Points
-
Summary

Bedrock is a project by the Roots team aimed at modernizing WordPress by transforming it into a Twelve-Factor app, enhancing its configuration and maintenance through integration with the PHP package manager, Composer. This approach allows WordPress core, themes, and plugins to be treated as dependencies, simplifying updates and deployments by making builds repeatable and reducing maintenance complexities. Bedrock's structure notably differs from traditional WordPress setups by not committing WordPress core files and custom themes/plugins to the repository; instead, they are managed as dependencies in a composer.json file. This method enhances security, reduces codebase bloat, and allows for more precise version control, ultimately providing greater flexibility in deployment across various environments. The integration of environment variables for configuration further aligns with the Twelve-Factor methodology, enabling consistent builds across different setups, and allowing developers to efficiently manage updates and customizations through Composer commands. Bedrock also supports deployment on platforms like Upsun.com, facilitating a smooth setup by automating dependency downloads, database connections, and application deployment while providing an adaptable framework for future WordPress development.