GrafeasGroup / blossom

The website. The app. The everything.
6 stars 3 forks source link

Deployment try 2 #444

Closed itsthejoker closed 2 years ago

itsthejoker commented 2 years ago

Description:

So it turns out that gunicorn really doesn't like being called from inside the thing it's supposed to be running. Supposedly it's possible, but if the goal is to turn this into a self-contained object, gunicorn certainly wasn't helping.

This PR swaps gunicorn for PYYWSGI, which is essentially a python wrapper around uWSGI. This works on local, so I'm building this with the hope that it can be deployed in one piece. It can be merged without danger to the existing code.

This will require changes to nginx, which are already in place but commented out. It will also require changes to the service file, which is are also already in place and commented out.

This also removes honeycomb-beeline in exchange for opentelemetry, recommended by Honeycomb.

To run the compiled binary in pyuwsgi mode, call python blossom.pyz -p.

Checklist: