OperationCode / operationcode_infra

Platform infrastructure for the Operation Code site.
MIT License
15 stars 14 forks source link

Run the production server instead of the development server #152

Closed aaron-junot closed 4 years ago

aaron-junot commented 4 years ago

I was naive when I did #91. The container should not start with flask because that's the development server 🤦

Production should be running uwsgi, which is why the Dockerfile specifies that.

I want to say part of this had to do with the fact that the /metrics endpoint was publicly accessible, so we're going to want to make that only accessible within the cluster and I'm not sure how to do that. But once we start getting a production load on the server, we really need to not be running the dev server anymore.