Spaces:
Paused
Paused
ffreemt
commited on
Commit
·
cfcc3f6
1
Parent(s):
29d6cfb
Update .env
Browse files- .env- → .env +1 -1
- duck2api_fwd.py +3 -3
.env- → .env
RENAMED
|
@@ -1,5 +1,5 @@
|
|
| 1 |
SERVER_HOST=127.0.0.1
|
| 2 |
-
SERVER_PORT=
|
| 3 |
FREE_ACCOUNTS=true
|
| 4 |
FREE_ACCOUNTS_NUM=1024
|
| 5 |
Authorization=
|
|
|
|
| 1 |
SERVER_HOST=127.0.0.1
|
| 2 |
+
SERVER_PORT=8081
|
| 3 |
FREE_ACCOUNTS=true
|
| 4 |
FREE_ACCOUNTS_NUM=1024
|
| 5 |
Authorization=
|
duck2api_fwd.py
CHANGED
|
@@ -29,11 +29,11 @@ Thread(target=run_duck2api).start()
|
|
| 29 |
y.configure(sln=1)
|
| 30 |
load_dotenv()
|
| 31 |
|
|
|
|
| 32 |
PORT = os.getenv("PORT")
|
| 33 |
if not PORT:
|
| 34 |
-
PORT =
|
| 35 |
|
| 36 |
-
PORT = 5000
|
| 37 |
|
| 38 |
y(PORT)
|
| 39 |
|
|
@@ -106,6 +106,6 @@ def my_endpoint():
|
|
| 106 |
|
| 107 |
if __name__ == "__main__":
|
| 108 |
y(" -- ")
|
| 109 |
-
app.run(port=
|
| 110 |
y(" -end- ")
|
| 111 |
|
|
|
|
| 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 |
|
|
|
|
| 37 |
|
| 38 |
y(PORT)
|
| 39 |
|
|
|
|
| 106 |
|
| 107 |
if __name__ == "__main__":
|
| 108 |
y(" -- ")
|
| 109 |
+
app.run(port=5000, debug=True)
|
| 110 |
y(" -end- ")
|
| 111 |
|