Packaging for flasfka (fpm-based) based on the latest pypi release.
The package embeds all the python dependencies in a virtualenv. It also sets up uwsgi. An example configuration for nginx is included.
- install fpm
- install python-virtualenv
- run
sh pkgbuild.sh
- copy what you need from
/usr/share/doc/flasfka-*/nginx.conf.sample
to/etc/nginx.conf
and restart nginx. - edit
/etc/flasfka.conf
to configure how flasfka connects to your cluster. - start using
flasfka: it is now being served from
/flasfka/vX
(whereX
is the major version - see below). A simple test will help seeing if everything is fine.
flaskfka has semantic versioning, which guarantees
that versions starting with the same digit (MAJOR) have a backward
compatible api. This digit determines the name of the package (0.x.y
generates flasfka-v0
, 1.x.y
generates flasfka-v1
...), ensuring
that we can safely replace the packages of a same MAJOR with one another.
This is for upgrade purpose, such that 2 incompatible versions can be installed on the same system, and served at 2 urls, without apt complaining.