0

How to run quart on hosting - there is already a domain .

web/public_html/app.py I run the file app => python3.9 app.py

Console: ` Okey!

  • Serving Quart app 'app'
  • Environment: production
  • Please use an ASGI server (e.g. Hypercorn) directly in production
  • Debug mode: False
  • Running on 127.0.0.1:5000 (CTRL + C to quit) [2022-11-28 17:50:47 +0300] [54149] [INFO] Running on 127.0.0.1:5000 (CTRL + C to quit) ` app.py:




# -*- coding: utf-8 -*- 
import discord
import os
import asyncio
import aiohttp
from quart import Quart, render_template, request, session, redirect, url_for, make_response, websocket


app = Quart(__name__)

@app.route("/")
async def index():
    return "Hello"


if __name__ == "__main__":
    print("Okey!")
    app.run()




When switching to a custom domain, the site does not work

TanderOFF
  • 1
  • 1
  • 1
  • I would take a look at your hosting providers instructions regarding which port (and possibly host) to bind to. – pgjones Dec 11 '22 at 10:29

0 Answers0