Skip to content

Testing World

Pink Ninja Tester

  • Home
  • About

Category: Flask

Flask: Problem to run

November 3, 2019October 17, 2022 pinkninjatester

if __name__ == '__main__':
      app.run(host='0.0.0.0', port=80)

The one above does not work. If I do ‘flask run’, it still refers to IP address 127.0.0.1 and port 5000.

do ‘flask run –host=0.0.0.0 port=80’ in terminal will work well.

Posted in Flask, PythonTagged Flask, Python comment on Flask: Problem to run

Recent Posts

  • Django: distinct
  • Python: \ufeff solution
  • Django: AttributeError – select_related
  • ORA-01435: user does not exist
  • Git: Origin vs Upstream

Categories

  • Airflow
  • Automation
  • Database
  • django
  • Flask
  • Git
  • Java
  • NET
  • Python
  • Technology
  • Testing
  • Uncategorized

Recent Comments

    Archives

    • November 2022
    • October 2022
    • August 2022
    • July 2022
    • July 2021
    • June 2021
    • May 2021
    • April 2021
    • March 2021
    • February 2021
    • January 2021
    • February 2020
    • January 2020
    • December 2019
    • November 2019
    • November 2018
    • September 2018
    • November 2017
    • March 2016
    • February 2016
    • January 2016

    Meta

    • Log in
    • Entries RSS
    • Comments RSS
    • WordPress.org

    © 2026 Testing World

    Proudly powered by WordPress, hosted by Mangelot Hosting. | Theme: x-blog by wpthemespace.com