ffreemt commited on
Commit
12623c6
·
1 Parent(s): d258350

Update SERVER_PORT

Browse files
Files changed (1) hide show
  1. duck2api_fwd.py +3 -2
duck2api_fwd.py CHANGED
@@ -14,7 +14,7 @@ import os
14
  from threading import Thread
15
 
16
  import requests
17
- from dotenv import load_dotenv
18
  from flask import Flask, jsonify, request
19
  from python_run_cmd import run_cmd
20
  from ycecream import y
@@ -28,9 +28,10 @@ Thread(target=run_duck2api).start()
28
 
29
  y.configure(sln=1)
30
  load_dotenv()
 
31
 
32
  # ./duck2api starts at 8088 specified in .env (default 8080)
33
- PORT = os.getenv("PORT")
34
  if not PORT:
35
  PORT = 8080
36
 
 
14
  from threading import Thread
15
 
16
  import requests
17
+ from dotenv import load_dotenv, dotenv_values
18
  from flask import Flask, jsonify, request
19
  from python_run_cmd import run_cmd
20
  from ycecream import y
 
28
 
29
  y.configure(sln=1)
30
  load_dotenv()
31
+ y(dotenv_values())
32
 
33
  # ./duck2api starts at 8088 specified in .env (default 8080)
34
+ PORT = os.getenv("SERVER_PORT")
35
  if not PORT:
36
  PORT = 8080
37