Skip to content

Commit

Permalink
Use APP_PORT if provided
Browse files Browse the repository at this point in the history
  • Loading branch information
Habush committed Mar 27, 2019
1 parent 44b2fa1 commit 7ac4b7a
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion config.py
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@
GRPC_PORT = "5003"

try:
MOZI_URI = os.environ["MOZI_URI"]
MOZI_URI = f"{os.environ['MOZI_URI']}:{APP_PORT}"
except KeyError:
MOZI_URI = "http://locahost:8080"

Expand Down
2 changes: 1 addition & 1 deletion docker-compose-dev.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ services:
- SCAN_INTERVAL=86400
- APP_PORT=${APP_PORT}
- SERVICE_ADDR=${SERVICE_ADDR}
- MOZI_URI=http://localhost:8080
- MOZI_URI=http://localhost

working_dir: /home/root/mozi_snet_service

Expand Down

0 comments on commit 7ac4b7a

Please sign in to comment.