You are not logged in.

#1 2015-03-08 19:24:03

lykwydchykyn
Member
Registered: 2013-07-11
Posts: 91

Advice on packaging a Flask web application for the AUR

I have a Flask-based web application (http://github.com/alandmoore/omega-hymnal) that I'd like to package for the AUR; I have a few questions about the best way to do this:

- Flask has its own built-in http server for testing, but it should really be run behind something else, like Apache mod_wsgi, Nginx, etc.   What's the accepted way to handle this?  Should I require a server of some kind, or leave it out and let the user decide how to configure the service?

- The application uses a sqlite database on the backend.  Where's the accepted place to put this in the filesystem?  /var/lib/<program-name>/?  (Reading the FHS, I always thought /srv/ was the right place, but I never see services using this directory).

Thanks for any advice.

Offline

#2 2015-03-10 19:38:48

aboe
Member
From: Netherlands
Registered: 2006-10-23
Posts: 19

Re: Advice on packaging a Flask web application for the AUR

What about: https://wiki.archlinux.org/index.php/We … guidelines

is this what you are looking for?

Offline

#3 2015-03-12 04:10:06

lykwydchykyn
Member
Registered: 2013-07-11
Posts: 91

Re: Advice on packaging a Flask web application for the AUR

Thanks.  That answers the filesystem question, but I'm not sure if I should include an http server as a dependency.

Offline

#4 2015-03-12 04:30:50

nullified
Member
From: Massachusetts, USA
Registered: 2013-12-09
Posts: 468

Re: Advice on packaging a Flask web application for the AUR

I'm going to guess that you shouldn't. If a choice can be made by a user, then the choice should be left to the user. Maybe you can add the recommended server as an optional dependency? I believe if you do that you'll have the option to add in parentheses that it is the recommended http server, and so on.


"We may say most aptly, that the Analytical Engine weaves algebraical patterns just as the Jacquard-loom weaves flowers and leaves." - Ada Lovelace

Offline

Board footer

Powered by FluxBB