swap to watchdog and spit logs out to docker

This commit is contained in:
thelamer 2019-07-03 14:45:43 -07:00
parent 8da1faf0c0
commit f77d46b66a
2 changed files with 7 additions and 4 deletions

View File

@ -41,9 +41,9 @@ RUN \
echo "**** install stuff specific to the dev container ****" && \
apt-get install -y \
git \
npm \
sudo && \
npm install -g nodemon && \
pip3 install \
watchdog && \
echo "**** install web app from git ****" && \
git clone \
https://github.com/linuxserver/docker-ffmpeg.git \

View File

@ -3,5 +3,8 @@
# Run App in development mode
cd /app/ffmpeg-web
exec \
s6-setuidgid abc nodemon \
--exec python3 server.py > /applogs/app.log 2>&1
s6-setuidgid abc \
watchmedo auto-restart \
-d . \
-p './server.py' \
-- python3 server.py