|
1 | | -<p align="center"> |
2 | | - <a href="https://roots.io/bedrock/"> |
3 | | - <img alt="Bedrock" src="https://cdn.roots.io/app/uploads/logo-bedrock.svg" height="100"> |
4 | | - </a> |
5 | | -</p> |
6 | | - |
7 | | -<p align="center"> |
8 | | - <a href="LICENSE.md"> |
9 | | - <img alt="MIT License" src="https://img.shields.io/github/license/roots/bedrock?color=%23525ddc&style=flat-square" /> |
10 | | - </a> |
11 | | - |
12 | | - <a href="https://packagist.org/packages/roots/bedrock"> |
13 | | - <img alt="Packagist" src="https://img.shields.io/packagist/v/roots/bedrock.svg?style=flat-square" /> |
14 | | - </a> |
15 | | - |
16 | | - <a href="https://github.com/roots/bedrock/actions/workflows/ci.yml"> |
17 | | - <img alt="Build Status" src="https://img.shields.io/github/workflow/status/roots/bedrock/CI?style=flat-square" /> |
18 | | - </a> |
19 | | - |
20 | | - <a href="https://twitter.com/rootswp"> |
21 | | - <img alt="Follow Roots" src="https://img.shields.io/twitter/follow/rootswp.svg?style=flat-square&color=1da1f2" /> |
22 | | - </a> |
23 | | -</p> |
24 | | - |
25 | | -<p align="center"> |
26 | | - <strong>A modern WordPress stack</strong> |
27 | | -</p> |
28 | | - |
29 | | -<p align="center"> |
30 | | - <a href="https://roots.io/"><strong><code>Website</code></strong></a> <a href="https://docs.roots.io/bedrock/master/installation/"><strong><code>Documentation</code></strong></a> <a href="https://github.com/roots/bedrock/releases"><strong><code>Releases</code></strong></a> <a href="https://discourse.roots.io/"><strong><code>Support</code></strong></a> |
31 | | -</p> |
32 | | - |
33 | | -## Supporting |
34 | | - |
35 | | -**Bedrock** is an open source project and completely free to use. |
36 | | - |
37 | | -However, the amount of effort needed to maintain and develop new features and products within the Roots ecosystem is not sustainable without proper financial backing. If you have the capability, please consider donating using the links below: |
38 | | - |
39 | | -<div align="center"> |
40 | | - |
41 | | -[](https://github.com/sponsors/roots) |
42 | | -[](https://www.patreon.com/rootsdev) |
43 | | -[](https://www.paypal.me/rootsdev) |
44 | | - |
45 | | -</div> |
46 | | - |
47 | | -## Overview |
48 | | - |
49 | | -Bedrock is a modern WordPress stack that helps you get started with the best development tools and project structure. |
50 | | - |
51 | | -Much of the philosophy behind Bedrock is inspired by the [Twelve-Factor App](http://12factor.net/) methodology including the [WordPress specific version](https://roots.io/twelve-factor-wordpress/). |
52 | | - |
53 | | -## Features |
54 | | - |
55 | | -- Better folder structure |
56 | | -- Dependency management with [Composer](https://getcomposer.org) |
57 | | -- Easy WordPress configuration with environment specific files |
58 | | -- Environment variables with [Dotenv](https://github.com/vlucas/phpdotenv) |
59 | | -- Autoloader for mu-plugins (use regular plugins as mu-plugins) |
60 | | -- Enhanced security (separated web root and secure passwords with [wp-password-bcrypt](https://github.com/roots/wp-password-bcrypt)) |
61 | | - |
62 | | -## Requirements |
63 | | - |
64 | | -- PHP >= 7.4 |
65 | | -- Composer - [Install](https://getcomposer.org/doc/00-intro.md#installation-linux-unix-osx) |
66 | | - |
67 | | -## Installation |
68 | | - |
69 | | -1. Create a new project: |
70 | | - ```sh |
71 | | - $ composer create-project roots/bedrock |
72 | | - ``` |
73 | | -2. Update environment variables in the `.env` file. Wrap values that may contain non-alphanumeric characters with quotes, or they may be incorrectly parsed. |
74 | | - |
75 | | -- Database variables |
76 | | - - `DB_NAME` - Database name |
77 | | - - `DB_USER` - Database user |
78 | | - - `DB_PASSWORD` - Database password |
79 | | - - `DB_HOST` - Database host |
80 | | - - Optionally, you can define `DATABASE_URL` for using a DSN instead of using the variables above (e.g. `mysql://user:password@127.0.0.1:3306/db_name`) |
81 | | -- `WP_ENV` - Set to environment (`development`, `staging`, `production`) |
82 | | -- `WP_HOME` - Full URL to WordPress home (https://example.com) |
83 | | -- `WP_SITEURL` - Full URL to WordPress including subdirectory (https://example.com/wp) |
84 | | -- `AUTH_KEY`, `SECURE_AUTH_KEY`, `LOGGED_IN_KEY`, `NONCE_KEY`, `AUTH_SALT`, `SECURE_AUTH_SALT`, `LOGGED_IN_SALT`, `NONCE_SALT` |
85 | | - - Generate with [wp-cli-dotenv-command](https://github.com/aaemnnosttv/wp-cli-dotenv-command) |
86 | | - - Generate with [our WordPress salts generator](https://roots.io/salts.html) |
87 | | - |
88 | | -3. Add theme(s) in `web/app/themes/` as you would for a normal WordPress site |
89 | | -4. Set the document root on your webserver to Bedrock's `web` folder: `/path/to/site/web/` |
90 | | -5. Access WordPress admin at `https://example.com/wp/wp-admin/` |
91 | | - |
92 | | -## Bedrock sponsors |
93 | | - |
94 | | -Help support our open-source development efforts [becoming a GitHub sponsor](https://github.com/sponsors/roots) or [patron](https://www.patreon.com/rootsdev). |
95 | | - |
96 | | -<a href="https://k-m.com/"><img src="https://cdn.roots.io/app/uploads/km-digital.svg" alt="KM Digital" width="200" height="150"></a> <a href="https://carrot.com/"><img src="https://cdn.roots.io/app/uploads/carrot.svg" alt="Carrot" width="200" height="150"></a> <a href="https://www.c21redwood.com/"><img src="https://cdn.roots.io/app/uploads/c21redwood.svg" alt="C21 Redwood Realty" width="200" height="150"></a> <a href="https://wordpress.com/"><img src="https://cdn.roots.io/app/uploads/wordpress.svg" alt="WordPress.com" width="200" height="150"></a> <a href="https://pantheon.io/"><img src="https://cdn.roots.io/app/uploads/pantheon.svg" alt="Pantheon" width="200" height="150"></a> |
97 | | - |
98 | | -## Community |
99 | | - |
100 | | -Keep track of development and community news. |
101 | | - |
102 | | -- Join us on Roots Slack by becoming a [GitHub sponsor](https://github.com/sponsors/roots) or [patron](https://www.patreon.com/rootsdev) |
103 | | -- Participate on the [Roots Discourse](https://discourse.roots.io/) |
104 | | -- Follow [@rootswp on Twitter](https://twitter.com/rootswp) |
105 | | -- Read and subscribe to the [Roots Blog](https://roots.io/blog/) |
106 | | -- Subscribe to the [Roots Newsletter](https://roots.io/subscribe/) |
| 1 | +## Notice: This repo is no longer being maintained. It has been replaced by [Pressbooks OSS Bedrock](https://github.com/pressbooks/pressbooksoss-bedrock) |
0 commit comments