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

Update API

parent d3e37815
No related branches found
No related tags found
No related merge requests found
Pipeline #35152 passed
Subproject commit 6588241220c36387a1f14ffeefeaca86bea22edc
Subproject commit 8e4bf148fe846f5ce2faf8577c164bdcddce833c
......@@ -50,7 +50,7 @@ server {
rewrite ^ $request_uri;
rewrite ^/dojo/api(/.*) $1 break;
return 400;
proxy_pass http://dojo-api:30992$uri;
proxy_pass http://dojo-api:30993$uri;
proxy_intercept_errors on;
proxy_http_version 1.1;
......
......@@ -32,7 +32,7 @@ CPU_LIMIT=${CPU_LIMIT} ${DOCKER_COMPOSE_COMMAND} kill
if [ "$1" = "--run" ]; then
# Check if .env file exists
if [ -f $ENV_FILE ]; then
cp -f $ENV_FILE API/$ENV_FILE
cat $ENV_FILE API/ExpressAPI/config.env > API/.env
CPU_LIMIT=${CPU_LIMIT} ${DOCKER_COMPOSE_COMMAND} --env-file ${ENV_FILE} up --build -d
else
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