ID | post_title | author | post_date | post_excerpt | layout | permalink | published | docs_project | publish_to_discourse | ||
---|---|---|---|---|---|---|---|---|---|---|---|
7767 |
Installing Bedrock |
Ben Word |
2015-10-15 05:29:33 -0700 |
doc |
true |
|
|
- PHP >= 5.5
- Composer - Install
- Clone the git repo -
git clone https://github.com/roots/bedrock.git
- Run
composer install
- Copy
.env.example
to.env
and update environment variables:
DB_NAME
- Database nameDB_USER
- Database userDB_PASSWORD
- Database passwordDB_HOST
- Database hostWP_ENV
- Set to environment (development
,staging
,production
)WP_HOME
- Full URL to WordPress home (http://example.com)WP_SITEURL
- Full URL to WordPress including subdirectory (http://example.com/wp)AUTH_KEY
,SECURE_AUTH_KEY
,LOGGED_IN_KEY
,NONCE_KEY
,AUTH_SALT
,SECURE_AUTH_SALT
,LOGGED_IN_SALT
,NONCE_SALT
- Generate with wp-cli-dotenv-command or from the WordPress Salt Generator
- Add theme(s) in
web/app/themes
as you would for a normal WordPress site. - Set your site vhost document root to
/path/to/site/web/
(/path/to/site/current/web/
if using deploys) - Access WP admin at
http://example.com/wp/wp-admin