Skip to content

Commit 8813fa5

Browse files
committed
fix openapi-specs make target in api-server
1 parent b8c494e commit 8813fa5

File tree

2 files changed

+9
-1
lines changed

2 files changed

+9
-1
lines changed

services/api-server/.env-devel

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,12 @@ POSTGRES_HOST=127.0.0.1
3131
# Enables debug
3232
SC_BOOT_MODE=debug
3333

34+
# rabbit settings
35+
RABBIT_HOST=rabbit
36+
RABBIT_PASSWORD=adminadmin
37+
RABBIT_PORT=5672
38+
RABBIT_SECURE=false
39+
RABBIT_USER=admin
3440

3541
# webserver
3642
WEBSERVER_HOST=webserver

services/api-server/Makefile

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,9 @@ reqs: ## compiles pip requirements (.in -> .txt)
2828

2929
define _create_and_validate_openapi
3030
# generating openapi specs file under $< (NOTE: Skips DEV FEATURES since this OAS is the 'offically released'!)
31-
@source .env; \
31+
set -o allexport; \
32+
source .env; \
33+
set +o allexport; \
3234
export API_SERVER_DEV_FEATURES_ENABLED=$1; \
3335
python3 -c "import json; from $(APP_PACKAGE_NAME).main import *; print( json.dumps(app_factory().openapi(), indent=2) )" > $@
3436

0 commit comments

Comments
 (0)