<commit_before>Example deployment for auth-boilerplate
=======================================

For aut<commit_msg>doc: add README do deploy<commit_after>Example deployment for auth-boilerplate
=======================================

We use a post-receive git hook to puplish the repository live on the server.
He triggers on every push to the git repo on the server.
In addition on every push to GitHub master branch Travis CI triggers a push to
the live server at auth.yacoma.it.

The post-receive hook uses the path defined in the ``livepath`` variable.
Make sure that this path exists on the server before pushing.
The hook triggers a ``make deploylive`` which is defined in ``Makefile``.
This copy the production settings to ``settings.json``, install the dependencies and
build the App.

The ``conf/web`` directory contains examples for server configuration with gunicord
and nginx as proxy. For monitoring and controlling gunicord we use supervisor.

  - **nginx.conf** - the nginx configuration.
  - **gunicorn.conf** - the supervisor configuration for gunicorn.
  - **legacy-apache2** - a legacy Apache2 mod-wsgi configuration I used before with nginx proxy.
    For inspiration.
{'fraction_non_alphanumeric': 0.12531539108494533, 'fraction_numerical': 0.001682085786375105, 'mean_word_length': 4.776699029126213, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '6370864', 'n_tokens_mistral': 310, 'n_tokens_neox': 286, 'n_words': 152}