rstudio / plumber

Turn your R code into a web API.
https://www.rplumber.io
Other
1.39k stars 256 forks source link

allow used ports #217

Closed verajosemanuel closed 6 years ago

verajosemanuel commented 6 years ago

I have more than one plumber script besides some flask apis built with python. The issue is the only opened port I can use is 80 (the usual port for web apis). Plumber does not allow me to run any other service if port is used. This is not the usual behavior for web services.

trestletech commented 6 years ago

This is unfortunately how ports behave -- only one process can listen at a time.

That being said, you could look at using nginx or apache on port 80 and having it proxy traffic to other internal ports where Flask or Plumber is listening.