Skip to content

Commit

Permalink
chore: adicionado target [config] para permitir mudança de base de dados
Browse files Browse the repository at this point in the history
  • Loading branch information
guilhermeadc committed May 2, 2023
1 parent a61b9fb commit be03280
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -123,6 +123,10 @@ clean:
@rm -f dist/$(PEN_MODULO_COMPACTADO)
@echo "Limpeza do diretório de distribuição do realizada com sucesso"

config: ## Configura o ambiente para outro banco de dados (mysql|sqlserver|oracle|postgresql). Ex: make config base=oracle
@cp -f $(PEN_TEST_FUNC)/env_$(base) $(PEN_TEST_FUNC)/.env;
@echo "$(SUCCESS)Ambiente configurado para utilizar a base de dados $(base).$(NC)"


install: check-isalive
$(CMD_COMPOSE_FUNC) up -d
Expand Down Expand Up @@ -224,7 +228,7 @@ tramitar-pendencias-simples:

tramitar-pendencias-silent:
@echo 'Executando monitoramento de pendências do Org1 e Org2'
@i=1; while [ "$$i" -le 300 ]; do \
@i=1; while [ "$$i" -le 3000 ]; do \
$(CMD_COMPOSE_FUNC) exec org1-http php /opt/sei/scripts/mod-pen/MonitoramentoTarefasPEN.php > /dev/null 2>&1 & \
$(CMD_COMPOSE_FUNC) exec org2-http php /opt/sei/scripts/mod-pen/MonitoramentoTarefasPEN.php > /dev/null 2>&1 ; \
i=$$((i + 1));\
Expand Down

0 comments on commit be03280

Please sign in to comment.