mirror of
https://github.com/simonw/datasette.git
synced 2025-12-10 16:51:24 +01:00
Add datasette-redirect-to-https plugin
Also configured suprvisord children to log to stdout, so that I can see them with flyctly logs -a datasette-apache-proxy-demo Refs #1524
This commit is contained in:
parent
f11a13d73f
commit
ed77eda6d8
1 changed files with 7 additions and 1 deletions
|
|
@ -25,7 +25,9 @@ RUN a2enmod headers
|
||||||
|
|
||||||
ARG DATASETTE_REF
|
ARG DATASETTE_REF
|
||||||
|
|
||||||
RUN pip install https://github.com/simonw/datasette/archive/${DATASETTE_REF}.zip
|
RUN pip install \
|
||||||
|
https://github.com/simonw/datasette/archive/${DATASETTE_REF}.zip \
|
||||||
|
datasette-redirect-to-https
|
||||||
|
|
||||||
ADD 000-default.conf /etc/apache2/sites-enabled/000-default.conf
|
ADD 000-default.conf /etc/apache2/sites-enabled/000-default.conf
|
||||||
|
|
||||||
|
|
@ -43,8 +45,12 @@ RUN echo "nodaemon=true" >> /app/supervisord.conf
|
||||||
RUN echo "" >> /app/supervisord.conf
|
RUN echo "" >> /app/supervisord.conf
|
||||||
RUN echo "[program:apache2]" >> /app/supervisord.conf
|
RUN echo "[program:apache2]" >> /app/supervisord.conf
|
||||||
RUN echo "command=apache2 -D FOREGROUND" >> /app/supervisord.conf
|
RUN echo "command=apache2 -D FOREGROUND" >> /app/supervisord.conf
|
||||||
|
RUN echo "stdout_logfile=/dev/stdout" >> /app/supervisord.conf
|
||||||
|
RUN echo "stdout_logfile_maxbytes=0" >> /app/supervisord.conf
|
||||||
RUN echo "" >> /app/supervisord.conf
|
RUN echo "" >> /app/supervisord.conf
|
||||||
RUN echo "[program:datasette]" >> /app/supervisord.conf
|
RUN echo "[program:datasette]" >> /app/supervisord.conf
|
||||||
RUN echo "command=datasette /app/fixtures.db --setting base_url '/prefix/' --version-note '${DATASETTE_REF}' -h 0.0.0.0 -p 8001" >> /app/supervisord.conf
|
RUN echo "command=datasette /app/fixtures.db --setting base_url '/prefix/' --version-note '${DATASETTE_REF}' -h 0.0.0.0 -p 8001" >> /app/supervisord.conf
|
||||||
|
RUN echo "stdout_logfile=/dev/stdout" >> /app/supervisord.conf
|
||||||
|
RUN echo "stdout_logfile_maxbytes=0" >> /app/supervisord.conf
|
||||||
|
|
||||||
CMD ["/usr/bin/supervisord", "-c", "/app/supervisord.conf"]
|
CMD ["/usr/bin/supervisord", "-c", "/app/supervisord.conf"]
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue