modify_host
This commit is contained in:
parent
555d181613
commit
071738ee4e
|
@ -6,6 +6,4 @@ COPY . .
|
|||
|
||||
RUN pip install -r requirements.txt
|
||||
|
||||
EXPOSE 4000
|
||||
|
||||
ENTRYPOINT ["python", "main.py"]
|
||||
|
|
3
main.py
3
main.py
|
@ -28,7 +28,6 @@ cors = CORS(app, resources={r"/predict": {"origins": url}, r"/feedback": {"origi
|
|||
|
||||
conn = psycopg2.connect(
|
||||
host="janet-pg",
|
||||
port=5432,
|
||||
database=os.getenv("POSTGRES_DB"),
|
||||
user=os.getenv("POSTGRES_USER"),
|
||||
password=os.getenv("POSTGRES_PASSWORD"))
|
||||
|
@ -168,4 +167,4 @@ if __name__ == "__main__":
|
|||
'response_intent text NOT NULL);'
|
||||
)
|
||||
conn.commit()
|
||||
app.run(host='127.0.0.1', port=4000)
|
||||
app.run(host='0.0.0.0')
|
||||
|
|
Loading…
Reference in New Issue