Skip to content
Snippets Groups Projects
Commit d258862b authored by michael.minelli's avatar michael.minelli
Browse files

bug fix

parent e64d37d9
Branches
Tags
No related merge requests found
Pipeline #35149 passed
Subproject commit 8531fc9f5fc4cf4d9ad7e3c5bc2639445c4abbd8 Subproject commit 6d615e8afd5febc505cf38d22bac75915d6e4342
...@@ -32,7 +32,7 @@ CPU_LIMIT=${CPU_LIMIT} ${DOCKER_COMPOSE_COMMAND} kill ...@@ -32,7 +32,7 @@ CPU_LIMIT=${CPU_LIMIT} ${DOCKER_COMPOSE_COMMAND} kill
if [ "$1" = "--run" ]; then if [ "$1" = "--run" ]; then
# Check if .env file exists # Check if .env file exists
if [ -f $ENV_FILE ]; then if [ -f $ENV_FILE ]; then
cp -f $ENV_FILE API/$ENV_FILE cat $ENV_FILE API/ExpressAPI/global.env > API/.env
CPU_LIMIT=${CPU_LIMIT} ${DOCKER_COMPOSE_COMMAND} --env-file ${ENV_FILE} up --build -d CPU_LIMIT=${CPU_LIMIT} ${DOCKER_COMPOSE_COMMAND} --env-file ${ENV_FILE} up --build -d
else else
echo "Need a file named ${ENV_FILE} providing environment variables." echo "Need a file named ${ENV_FILE} providing environment variables."
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment