项目作者: joepurdy

项目描述 :
WordPress development workflow using Bedrock and Docker
高级语言: Shell
项目地址: git://github.com/joepurdy/DockPress.git
创建时间: 2017-06-25T20:46:23Z
项目社区:https://github.com/joepurdy/DockPress

开源协议:MIT License

下载


DockPress

DockPress is a dockerized version of WordPress inspired heavily by the Roots.io approach to managing a modern WordPress application.

Features

  • Pre-defined development workflow using a single script
  • Support for simple initialization of Bedrock and Sage
  • Composer package management
  • WP-CLI commands for easier administration

Requirements

Installation

  1. Run the initialization command with the develop script:

    ./develop init your-theme-name

  2. Update environment variables in src/.env file:

    • 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.dev)
    • WP_SITEURL - Full URL to WordPress including subdirectory (http://example.dev/wp)
    • AUTH_KEY, SECURE_AUTH_KEY, LOGGED_IN_KEY, NONCE_KEY, AUTH_SALT, SECURE_AUTH_SALT, LOGGED_IN_SALT, NONCE_SALT - Generate these at https://roots.io/salts.html

The develop script sets defaults for the DB environment variables so if you aren’t using custom values you should specify the following values:

  1. DB_NAME=wordpress
  2. DB_USER=wordpress
  3. DB_PASSWORD=secret
  4. DB_HOST=mysql
  1. Bring the Docker environment online with ./develop up -d

  2. Create an entry in your hostfile mapping the WP_HOME address to 127.0.0.1

  3. Access WP admin at http://example.dev/wp/wp-admin

Contributing

Contributions are welcome from everyone. I don’t consider myself an expert here since I only work on WordPress projects once in a blue moon. Check out the contributing guidelines to help you get started.