senja006 / cdkrock

Bedrock clone with standard WP structure

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

CDKrock

CDKrock is a modern WordPress stack that helps you get started with the best development tools and project structure. This is clone of Roots/Bedrock with standart structure.

Features

  • Dependency management with Composer
  • Easy WordPress configuration with environment specific files
  • Environment variables with Dotenv
  • Autoloader for mu-plugins (use regular plugins as mu-plugins)
  • Enhanced security (separated web root and secure passwords with wp-password-bcrypt)

Use Trellis for additional features:

  • Wordmove file included with Serverpilot paths
  • Easy development environments with Vagrant
  • Easy server provisioning with Ansible (Ubuntu 16.04, PHP 7.1, MariaDB)
  • One-command deploys

Requirements

Installation

  1. Create a new project in a new folder for your project:

git clone https://github.com/DimaMinka/cdkrock.git

  1. Copy .env.example to .env and update environment variables:
  • DB_NAME - Database name
  • DB_USER - Database user
  • DB_PASSWORD - Database password
  • DB_HOST - Database host
  • WP_ENV - Set to environment (development, staging, production)
  • WP_HOME - Full URL to WordPress home (http://example.com)
  • WP_PREFIX - Special database prefix for more security
  • AUTH_KEY, SECURE_AUTH_KEY, LOGGED_IN_KEY, NONCE_KEY, AUTH_SALT, SECURE_AUTH_SALT, LOGGED_IN_SALT, NONCE_SALT

If you want to automatically generate the security keys (assuming you have wp-cli installed locally) you can use the very handy wp-cli-dotenv-command:

  wp package install aaemnnosttv/wp-cli-dotenv-command

  wp dotenv salts regenerate

Or, you can cut and paste from the Roots WordPress Salt Generator.

  1. Add theme(s) in wp/wp-content/themes as you would for a normal WordPress site.

  2. Set your site vhost document root to /path/to/site/wp/ (/path/to/site/current/wp/ if using deploys)

  3. Create symlink. Example for Serverpilot: ln -s wp public

  4. Access WP admin at http://example.com/wp-admin

Deploys

There are two methods to deploy Bedrock sites out of the box:

Any other deployment method can be used as well with one requirement:

composer install must be run as part of the deploy process.

Documentation

Bedrock documentation is available at https://roots.io/bedrock/docs/.

About

Bedrock clone with standard WP structure

License:MIT License


Languages

Language:PHP 100.0%