1
0
mirror of https://github.com/Mailu/Mailu.git synced 2025-02-21 19:19:39 +02:00

Perform automatic database migration

This commit is contained in:
Pierre Jaury 2016-06-25 14:11:34 +02:00
parent 81c33fce8a
commit cc013560d9
2 changed files with 7 additions and 2 deletions

View File

@ -4,9 +4,10 @@ RUN mkdir -p /app
WORKDIR /app
COPY freeposte ./freeposte
COPY initdb.py .
COPY manage.py .
COPY requirements.txt .
COPY start.sh /start.sh
RUN pip install -r requirements.txt
CMD gunicorn -w 4 -b 0.0.0.0:80 --access-logfile - --error-logfile - freeposte:app
CMD ["/start.sh"]

4
admin/start.sh Executable file
View File

@ -0,0 +1,4 @@
#!/bin/sh
python manage.py db upgrade
gunicorn -w 4 -b 0.0.0.0:80 --access-logfile - --error-logfile - freeposte:app