Skip to content

Commit

Permalink
Build on dp1 branch
Browse files Browse the repository at this point in the history
  • Loading branch information
nmagee committed Nov 19, 2024
1 parent 39b9d69 commit e768877
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 10 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/build.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ name: container-build

on:
push:
branches: [ main ]
branches: [ main, dp1 ]

env:
REGISTRY: ghcr.io
Expand Down
8 changes: 0 additions & 8 deletions app/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,21 +7,13 @@
from mysql.connector import Error
import json
import os
# from mysql.connector import RefreshOption

# refresh = RefreshOption.LOG
# refresh = RefreshOption.LOG | RefreshOption.THREADS

DBHOST = "ds2022.cqee4iwdcaph.us-east-1.rds.amazonaws.com"
DBUSER = "admin"
DBPASS = os.getenv('DBPASS')
DB = "nem2p"

# db = mysql.connector.connect(user=DBUSER, host=DBHOST, password=DBPASS, database=DB, ssl_disabled=True)
# cur=db.cursor()

app = FastAPI()

from fastapi.middleware.cors import CORSMiddleware
app.add_middleware(
CORSMiddleware,
Expand Down
3 changes: 2 additions & 1 deletion requirements.txt
Original file line number Diff line number Diff line change
@@ -1,8 +1,9 @@
uvicorn
fastapi[standard]
mysql-connector-python

# typing
# pydantic
mysql-connector-python
# pymongo
# dnspython
# mysqlclient

0 comments on commit e768877

Please sign in to comment.