WordPress CPT for BC Marine Canvas' canvas services.
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
.
- Duplicate
.sample.env
in the root project directory, and name it.env
. - Open
.env
and update the paths as needed. - Start coding.
- 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.
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. |