title: How to run Flask in two Port or threads
body: <p>I want to run a Flask instance that listens in two different ports, I mean, some operations at port 8080 and others at 8090. Is There any way to do this? O maybe running two Flask app instances in thread?</p>
  
  <p>Adding Context: Basically, I need to emulate a production envs, in which the core functionality is on port 8080, but since some security restriction I need to use a proxy for some operations (8090) for some specific clients</p>
  
  <p>I mean on 8080 for instance</p>
  
  <ul>
  <li>/repository/{id}</li>
  </ul>
  
  <p>This operation is consume by almost all clients, however, some specific client need to use a proxy.
  on 8090 for instance</p>
  
  <ul>
  <li>/reposproxy?method="get"&amp;resource="repository"&amp;query="id="xxxx"</li>
  </ul>
  
  <p>that basically, call the 8080.</p>
  
  <p>Additionally, I try to fork or make a thread for app.run() but I could not succeeds to run.</p>