Add absolute path for some commands
This commit is contained in:
7
Makefile
7
Makefile
@@ -5,6 +5,9 @@ include .env
|
||||
# MySQL
|
||||
MYSQL_DUMPS_DIR=data/db/dumps
|
||||
|
||||
# Paths
|
||||
ROOT_PATH=/var/www/html
|
||||
|
||||
help:
|
||||
@echo ""
|
||||
@echo "usage: make COMMAND"
|
||||
@@ -25,7 +28,7 @@ init:
|
||||
@$(shell cp -n $(shell pwd)/web/app/composer.json.dist $(shell pwd)/web/app/composer.json 2> /dev/null)
|
||||
|
||||
apidoc:
|
||||
@docker exec -i $(shell docker-compose ps -q php) php app/vendor/apigen/apigen/bin/apigen generate -s app/src -d app/doc
|
||||
@docker exec -i $(shell docker-compose ps -q php) php $(ROOT_PATH)/app/vendor/apigen/apigen/bin/apigen generate -s app/src -d app/doc
|
||||
@make resetOwner
|
||||
|
||||
clean:
|
||||
@@ -65,7 +68,7 @@ mysql-restore:
|
||||
@docker exec -i mysql mysql -u"$(MYSQL_ROOT_USER)" -p"$(MYSQL_ROOT_PASSWORD)" < $(MYSQL_DUMPS_DIR)/db.sql
|
||||
|
||||
test:
|
||||
@docker exec -i $(shell docker-compose ps -q php) app/vendor/bin/phpunit --colors=always --configuration app/
|
||||
@docker exec -i $(shell docker-compose ps -q php) $(ROOT_PATH)/app/vendor/bin/phpunit --colors=always --configuration app/
|
||||
@make resetOwner
|
||||
|
||||
resetOwner:
|
||||
|
||||
Reference in New Issue
Block a user