Merge branch 'master' into almet/fix-supervisord-template

This commit is contained in:
Alexis Métaireau 2018-08-05 14:27:30 +02:00
commit 08bcf702b8
3 changed files with 29 additions and 2 deletions

View file

@ -6,9 +6,17 @@ This document describes changes between each past release.
2.1.1 (unreleased) 2.1.1 (unreleased)
------------------ ------------------
Fixed
=====
- Regenerate translations (#338) - Regenerate translations (#338)
- Fix the supervisord template (#309) - Fix the supervisord template (#309)
- Fix broken install with pip ≥ 10 (#340)
Added
=====
- Document MySQL setup (#357)
2.1 (2018-02-16) 2.1 (2018-02-16)
---------------- ----------------

View file

@ -1,6 +1,7 @@
FROM python:3.6-alpine FROM python:3.6-alpine
RUN mkdir /ihatemoney &&\ RUN apk add gcc libc-dev libffi-dev openssl-dev &&\
mkdir /ihatemoney &&\
mkdir -p /etc/ihatemoney &&\ mkdir -p /etc/ihatemoney &&\
pip install --no-cache-dir gunicorn pymysql pip install --no-cache-dir gunicorn pymysql

View file

@ -63,6 +63,22 @@ Once installed, you can start a test server::
And point your browser at `http://localhost:5000 <http://localhost:5000>`_. And point your browser at `http://localhost:5000 <http://localhost:5000>`_.
Configure database with MySQL/MariaDB (optional)
================================================
Only required if you prefer MySQL/MariaDB over SQLite.
1. Install PyMySQL dependencies. On Debian or Ubuntu, that would be::
apt install python3-dev libssl-dev
2. Install PyMySQL (within your virtualenv)::
pip install 'PyMySQL>=0.9,<0.10'
3. Create an empty database and a database user
4. Configure :ref:`SQLALCHEMY_DATABASE_URI <configuration>` accordingly
Deploy it Deploy it
========= =========
@ -159,6 +175,8 @@ For example, use the following command to add more gunicorn workers::
docker run -d -p 8000:8000 ihatemoney -w 3 docker run -d -p 8000:8000 ihatemoney -w 3
.. _configuration:
Configuration Configuration
============= =============