-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'AlamedaCMS' into docss
- Loading branch information
Showing
298 changed files
with
82,448 additions
and
2,002 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,68 @@ | ||
#!/bin/bash | ||
|
||
DOCKER_BE = grace-be | ||
OS := $(shell uname) | ||
|
||
ifeq ($(OS),Darwin) | ||
UID = $(shell id -u) | ||
else ifeq ($(OS),Linux) | ||
UID = $(shell id -u) | ||
else | ||
UID = 1000 | ||
endif | ||
|
||
help: ## Show this help message | ||
@echo 'usage: make [target]' | ||
@echo | ||
@echo 'targets:' | ||
@egrep '^(.+)\:\ ##\ (.+)' ${MAKEFILE_LIST} | column -t -c 2 -s ':#' | ||
|
||
run: ## Start the containers | ||
docker network create vero-network || true | ||
U_ID=${UID} docker-compose up -d | ||
|
||
stop: ## Stop the containers | ||
U_ID=${UID} docker-compose stop | ||
|
||
restart: ## Restart the containers | ||
$(MAKE) stop && $(MAKE) run | ||
|
||
build: ## Rebuilds all the containers | ||
U_ID=${UID} docker-compose build | ||
|
||
prepare: ## Runs backend commands | ||
$(MAKE) composer-install | ||
|
||
# Backend commands | ||
composer-install: ## Installs composer dependencies | ||
U_ID=${UID} docker exec --user ${UID} -it ${DOCKER_BE} composer install --no-scripts --no-interaction --optimize-autoloader | ||
|
||
migrations: ## Runs the migrations | ||
U_ID=${UID} docker exec -it --user ${UID} ${DOCKER_BE} bin/console doctrine:migrations:migrate -n | ||
|
||
be-logs: ## Tails the Symfony dev log | ||
U_ID=${UID} docker exec -it --user ${UID} ${DOCKER_BE} tail -f var/log/dev.log | ||
# End backend commands | ||
|
||
ssh-be: ## ssh's into the be container | ||
U_ID=${UID} docker exec -it --user ${UID} ${DOCKER_BE} bash | ||
|
||
code-style: ## Runs php-cs to fix code styling following Symfony rules | ||
U_ID=${UID} docker exec -it --user ${UID} ${DOCKER_BE} php-cs-fixer fix src --rules=@Symfony | ||
|
||
generate-ssh-keys: ## Generar los ssh keys de JWT library | ||
U_ID=${UID} docker exec -it --user ${UID} ${DOCKER_BE} mkdir -p config/jwt | ||
U_ID=${UID} docker exec -it --user ${UID} ${DOCKER_BE} openssl genrsa -passout pass:21023c10e2208b4d3a4a279ea0bf5ee6 -out config/jwt/private.pem -aes256 4096 | ||
U_ID=${UID} docker exec -it --user ${UID} ${DOCKER_BE} openssl rsa -pubout -passin pass:21023c10e2208b4d3a4a279ea0bf5ee6 -in config/jwt/private.pem -out config/jwt/public.pem | ||
|
||
clear-cache: ## ejecuta cache:clear | ||
U_ID=${UID} docker exec --user ${UID} -it ${DOCKER_BE} php bin/console cache:clear | ||
|
||
assets-install: ## ejecuta assets:install en docker | ||
U_ID=${UID} docker exec --user ${UID} -it ${DOCKER_BE} php bin/console assets:install --symlink public | ||
|
||
yarn-encore: ## ejecuta yarn encore | ||
U_ID=${UID} docker exec --user ${UID} -it ${DOCKER_BE} yarn encore dev | ||
|
||
yarn-install: ## install yarn dependencies | ||
U_ID=${UID} docker exec --user ${UID} -it ${DOCKER_BE} yarn install |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.