I am coding flask app on development server 5000, but I want change it for production on my public server which I've got from port forwarding on port 80. So when i try command flask run --host 0.0.0.0 --port 80 then I get error PermissionError: [Errno 13] Permission denied. I also tried it by sudo but then throw a error Error: Could not locate a Flask application. You did not provide the "FLASK_APP" environment variable, and a "wsgi.py" or "app.py" module was not found in the current directory.
So how can I run my flask app on my public server? I need it because this app will be for several users and it will not be possible if this app won't be public.