Skip to Content

Configure Environment and Composer

🎯 Goal: Make Bedrock ready to run by configuring .env and installing plugins.

  1. Configure .env

    • Copy .env.example to .env.

    • Use CI/CD environment values and update for local:

      WP_HOME=https://example.local WP_SITEURL=${WP_HOME}/wp DB_NAME=bedrock_db DB_USER=bedrock_user DB_PASSWORD=secret DB_HOST=127.0.0.1
    • Generate salts at roots.io/salts.

  2. Install Plugins via Composer

    • Replace manual plugins with Composer equivalents via WPackagist:

      terminal
      composer require wpackagist-plugin/contact-form-7
    • Add premium plugin repos (if needed) to composer.json.

    • Run:

      terminal
      composer update
Last updated on