简体   繁体   中英

setting a public web server by python3 http.server module

I new to python, as well as web developing. I made a python web application with the help of http.server module and ran it on localhost port. It is working fine at localhost:abcd .

Now I want to run it on some public server like pythonanywhere or heroku! But the don't get the part what the server address and port would be.

I need help. Thanks in advance.

在PythonAnywhere上,您可以在运行在端口80上的your-username.pythonanywhere.com上获得一个Web应用程序,因此只需在浏览器URL栏中键入http://your-username.pythonanywhere.com/即可访问它。

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM