jbboynton / bc-canvas

WordPress CPT for BC Marine Canvas' canvas services.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

BC Canvas

WordPress CPT for BC Marine Canvas' canvas services.

Environment Setup

This project uses a single .env file to make the development process a little easier. Normally, this plugin is installed via composer. However, trying to deploy the plugin with composer while trying to iterate rapidly would be a nightmare. To make life easier, this repo contains a script (bin/dev_sync.sh) that copies the plugin code to where ever it would normally be installed with composer.

Configuration

  1. Duplicate .sample.env in the root project directory, and name it .env.
  2. Open .env and update the paths as needed.
  3. Start coding.
  4. In the terminal from the root of the project, run ./bin/dev_sync.sh. Personally, I'd recommend hooking this up so that it runs every time you save a file in the repo.

Environment Variables

Variable Description
BC_CANVAS_TRACKED_DIR Your local copy of the project repository.
BC_CANVAS_TEST_DIR Copy destination - probably inside mu-plugins.
BC_CANVAS_MU_PLUGIN_DIR The mu-plugins directory.
BC_CANVAS_JSON_DIR The acf-json directory.

About

WordPress CPT for BC Marine Canvas' canvas services.


Languages

Language:PHP 90.6%Language:Shell 9.4%