← Back to team overview

canonical-ci-engineering team mailing list archive

Flask Charm best practices?

 

Hey guys,

So I'm working on the CI Train spreadsheet replacement, I have a
little flask app that provides a JSON api and a local js browser app
that talks JSON to the backend. It's all coming together pretty slick,
thanks for those recommendations in Austin.

I'm getting close to the point where I need to charm this up for
production deployment, but I'm not sure specifically how to structure
the charm.

Presumably I want flask to run as an WSGI module in Apache, does that
sound right? How do I go about that? I would guess that I'd want to
deploy a stock apache charm, then write my charm as a subordinate
charm that configures wsgi in apache or something like that.

Can you guys point me at the charms you've written for some of your
flask-based microservices?

Thanks!


Follow ups