Add corrections

This commit is contained in:
Vincent Letourneau
2017-07-28 19:54:32 +02:00
parent ea71aa6fdb
commit 37b0918baf

View File

@@ -16,15 +16,16 @@ help:
@echo " docker-start Create and start containers"
@echo " docker-stop Stop all services"
@echo " gen-certs Generate SSL certificates"
@echo " logs Follow log output"
@echo " mysql-dump Create backup of whole database"
@echo " mysql-restore Restore backup from whole database"
@echo " test Test application"
init:
@cp -n $(shell pwd)/web/app/composer.json.dist $(shell pwd)/web/app/composer.json
@$(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 $(shell pwd)/app/vendor/apigen/apigen/bin/apigen generate -s app/src -d app/doc
@docker exec -i $(shell docker-compose ps -q php) php ./app/vendor/apigen/apigen/bin/apigen generate -s app/src -d app/doc
@make resetOwner
clean:
@@ -52,6 +53,9 @@ docker-stop:
gen-certs:
@docker run --rm -v $(shell pwd)/etc/ssl:/certificates -e "SERVER=localhost" jacoelho/generate-certificate
logs:
@docker-compose logs -f
mysql-dump:
@mkdir -p $(MYSQL_DUMPS_DIR)
@docker exec -i $(shell docker-compose ps -q mysqldb) mysqldump --all-databases -u"$(MYSQL_ROOT_USER)" -p"$(MYSQL_ROOT_PASSWORD)" > $(MYSQL_DUMPS_DIR)/db.sql