diff --git a/CHANGELOG.md b/CHANGELOG.md index e84b373..6b736c3 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,9 @@ # nystudio107/craft Change Log +## 2.4.34 - 2021.04.10 +### Added +* Added `make craft` to the Makefile commands + ## 2.4.33 - 2021.04.06 ### Changed * Use `rm -f` to ensure no errors if the file doesn’t exist diff --git a/Makefile b/Makefile index b2d7a1f..efda326 100644 --- a/Makefile +++ b/Makefile @@ -11,6 +11,9 @@ clean: composer: up docker exec -it ${CONTAINER} composer \ $(filter-out $@,$(MAKECMDGOALS)) +craft: up + docker exec -it ${CONTAINER} php craft \ + $(filter-out $@,$(MAKECMDGOALS)) dev: up npm: up docker exec -it ${BUILDCHAIN} npm \ diff --git a/README.md b/README.md index 8ef24e3..449a69f 100644 --- a/README.md +++ b/README.md @@ -97,6 +97,7 @@ To make using it easier, we're using a Makefile and the built-in `make` utility - `make update` - causes the project to update to the latest Composer and NPM dependencies - `make update-clean` - completely removes `node_modules/` & `vendor/`, then causes the project to update to the latest Composer and NPM dependencies - `make composer xxx` - runs the `composer` command passed in, e.g. `make composer install` +- `make craft xxx` - runs the `craft` [console command](https://craftcms.com/docs/3.x/console-commands.html) passed in, e.g. `make craft project-config/apply` in the php container - `make npm xxx` - runs the `npm` command passed in, e.g. `make npm install` - `make pulldb` - runs the `scripts/docker_pull_db.sh` script to pull a remote database into the database container; the `scripts/.env.sh` must be set up first - `make restoredb xxx` - runs the `scripts/docker_restore_db.sh` script to restore a local database dump into the database container; the `scripts/.env.sh` must be set up first