I am working on a project and I start it with pipenv run flask run and host my project to the default localhost:5000/ but want to host it to port 3000. How can I change it? I know that I can add if __name__ == '__main__': app.run(port=3000) and run the server with the command python app.py but I want to start it with pipenv on port 3000.
pipenv run flask run
if __name__ == '__main__': app.run(port=3000)
python app.py
Just figured it out: pipenv run flask run -h localhost -p 3000
pipenv run flask run -h localhost -p 3000
1.4m articles
1.4m replys
5 comments
57.0k users