ich wollte soeben meine Flaskwebseite online stellen. Dafür habe ich via SFTP das gesamte Projekt bei IONOS auf den Server geladen. Jetzt passiert aber nichts weiter. Habe ich etwas falsch benannt oder eine falsche Ordnerstruktur?
Code: Alles auswählen
meineseite/
__pycache__
app/
__init__py
__pychache__
views.py
templates/
base.html
home.html
andsoon.html
static/
css/
js/
images/
fonts/
venv
run.py
run.py:
Code: Alles auswählen
from app import app
if __name__ == "__main__":
app.run(debug=False)
Code: Alles auswählen
from flask import Flask
from flask_bootstrap import Bootstrap
from flask_mail import Mail
app = Flask(__name__)
Bootstrap(app)
app.config['SECRET_KEY'] = 'xxx'
app.config.update(dict(
#configs
))
mail = Mail(app)
from app import views
Rufe bei mir lokal immer via terminal:
Code: Alles auswählen
gunicorn -w 4 -b 127.0.0.1:8000 run:app