Loading script/_prepare-deploy.sh +4 −4 Original line number Diff line number Diff line Loading @@ -20,10 +20,10 @@ fi echo -e "\n${INFO_COLOR}Setting environment variables to local and remote environments ..${NULL_COLOR}" echo -en " ${INFO_COLOR}variable names [ ${DATA_COLOR}SERVICE${INFO_COLOR}, ${DATA_COLOR}STACK${INFO_COLOR}" # Se toma como base el entorno actual, incluyendo solo las variables cuyo nombre comience con el prefijo deseado. envDefs="SERVICE=${SERVICE}\\nSTACK=${STACK}" currEnv=$(env | grep "^${ENV_PREFIX}" | sed -E "s/${ENV_PREFIX}([^=]+)=([^\n]*)/\1=\"\2\"/g" | \ sed "s/ /${ENV_SPACE_REPLACEMENT_TEXT}/g") # Se toma como base el entorno actual, incluyendo solo las variables cuyo nombre comience con el prefijo deseado. currEnv=$(env | grep "^${ENV_PREFIX}" | sed "s/${ENV_PREFIX}//g" | sed "s/ /${ENV_SPACE_REPLACEMENT_TEXT}/g") for currEnvItem in ${currEnv} do Loading @@ -44,8 +44,8 @@ done # Se prepara el fichero .env para usarlas en la máquina destino y se setean en este entorno también. echo -e ${envDefs} >> .env echo -e " ]${NULL_COLOR}" echo -e " ]${NULL_COLOR}" echo -e "\n${INFO_COLOR}Checking deploy configuration in docker-compose files ..${NULL_COLOR}" echo -e " ${INFO_COLOR}compose files [ ${DATA_COLOR}${COMPOSE_FILE}${INFO_COLOR} ]${NULL_COLOR}\n" Loading Loading
script/_prepare-deploy.sh +4 −4 Original line number Diff line number Diff line Loading @@ -20,10 +20,10 @@ fi echo -e "\n${INFO_COLOR}Setting environment variables to local and remote environments ..${NULL_COLOR}" echo -en " ${INFO_COLOR}variable names [ ${DATA_COLOR}SERVICE${INFO_COLOR}, ${DATA_COLOR}STACK${INFO_COLOR}" # Se toma como base el entorno actual, incluyendo solo las variables cuyo nombre comience con el prefijo deseado. envDefs="SERVICE=${SERVICE}\\nSTACK=${STACK}" currEnv=$(env | grep "^${ENV_PREFIX}" | sed -E "s/${ENV_PREFIX}([^=]+)=([^\n]*)/\1=\"\2\"/g" | \ sed "s/ /${ENV_SPACE_REPLACEMENT_TEXT}/g") # Se toma como base el entorno actual, incluyendo solo las variables cuyo nombre comience con el prefijo deseado. currEnv=$(env | grep "^${ENV_PREFIX}" | sed "s/${ENV_PREFIX}//g" | sed "s/ /${ENV_SPACE_REPLACEMENT_TEXT}/g") for currEnvItem in ${currEnv} do Loading @@ -44,8 +44,8 @@ done # Se prepara el fichero .env para usarlas en la máquina destino y se setean en este entorno también. echo -e ${envDefs} >> .env echo -e " ]${NULL_COLOR}" echo -e " ]${NULL_COLOR}" echo -e "\n${INFO_COLOR}Checking deploy configuration in docker-compose files ..${NULL_COLOR}" echo -e " ${INFO_COLOR}compose files [ ${DATA_COLOR}${COMPOSE_FILE}${INFO_COLOR} ]${NULL_COLOR}\n" Loading