Chang port fail

server.py

if __name__ == "__main__":
    app.run(host="127.0.0.1",port=1234,debug=True,access_log=True)

terminal

sanic server.app

Goin’ Fast @ http://127.0.0.1:8000

i user port 1234,but sanic run port 8000.help me~

I know it’s successful.
terminal

sanic server.app --host=127.0.0.1 --port=1234

When you run
sanic server.app

the following does not evaluate as true

if __name__ == "__main__":
    app.run(host="127.0.0.1",port=1234,debug=True,access_log=True)

because in this situation __name__ is server

thank you~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

thank you