Tonic commited on
Commit
212ac2a
·
unverified ·
1 Parent(s): fc7ef83

fix port error

Browse files
Files changed (2) hide show
  1. app.py +2 -2
  2. dockerfile +1 -1
app.py CHANGED
@@ -16,7 +16,7 @@ logger = logging.getLogger(__name__)
16
 
17
  app = Flask(__name__)
18
 
19
- redirect_uri = os.getenv("REDIRECT_URI", "http://localhost:5000/auth/callback")
20
  CALLBACK_MANAGER = CallbackManager(
21
  redirect_uri=redirect_uri,
22
  client_secret=None,
@@ -135,5 +135,5 @@ def one_click():
135
  return render_template('oneclick.html')
136
 
137
  if __name__ == '__main__':
138
- port = int(os.getenv("PORT", 5000)) # Default to 5000, override with PORT env var
139
  app.run(debug=False, host='0.0.0.0', port=port)
 
16
 
17
  app = Flask(__name__)
18
 
19
+ redirect_uri = os.getenv("REDIRECT_URI", "http://localhost:7860/auth/callback")
20
  CALLBACK_MANAGER = CallbackManager(
21
  redirect_uri=redirect_uri,
22
  client_secret=None,
 
135
  return render_template('oneclick.html')
136
 
137
  if __name__ == '__main__':
138
+ port = int(os.getenv("PORT", 7860)) # Default to 5000, override with PORT env var
139
  app.run(debug=False, host='0.0.0.0', port=port)
dockerfile CHANGED
@@ -17,7 +17,7 @@ RUN apt-get update && apt-get install -y \
17
  COPY . .
18
 
19
  # Expose the port Flask will run on
20
- EXPOSE 5000
21
 
22
  EXPOSE 7860
23
 
 
17
  COPY . .
18
 
19
  # Expose the port Flask will run on
20
+ # EXPOSE 5000
21
 
22
  EXPOSE 7860
23