skip to Main Content

nginx not showing anything

I seem to have a problem with my nginx. I just deployed a Flask app on an AWS EC2 instance and linked it to my subdomain (let's call it subdomain.domain.com). Everything was working correctly, my app running on port 5001,…

VIEW QUESTION

Running a Flask App in docker doesn't show a page in browser

I created the following Flask app: app.py from flask import Flask, render_template app = Flask(__name__) @app.route('/') def inicio(): return render_template('index.html') if __name__=='__main__': app.run(debug=True) index.html <html> <head> </head> <body> <p>This is a beautiful world indeed</p> </body> </html> Dockerfile FROM python:3.9-alpine COPY…

VIEW QUESTION

Redis – Inconsistent Flask Session

I am planning to deploy a program via waitress for development purposes. I decided to use Flask Session to be able to create a unique identity per user. app = Flask(__name__) app.secret_key = secrets.token_hex(16) app.config['UPLOAD_FOLDER'] = 'uploads' app.config['SESSION_TYPE'] = 'filesystem'…

VIEW QUESTION
Back To Top
Search