From fe355be93f496331de44800ac7c49bd234f8ff70 Mon Sep 17 00:00:00 2001 From: Yves Lavoie Date: Wed, 28 Jun 2017 12:02:22 -0400 Subject: [PATCH] Use plackup and port 5001 to comply with tests --- Dockerfile | 6 ++++-- start.sh | 4 +++- 2 files changed, 7 insertions(+), 3 deletions(-) diff --git a/Dockerfile b/Dockerfile index 9e4574e..717ee2c 100755 --- a/Dockerfile +++ b/Dockerfile @@ -21,7 +21,7 @@ RUN DEBIAN_FRONTENT=noninteractive && \ libmoosex-nonmoose-perl \ texlive-latex-recommended \ texlive-xetex \ - starman \ + curl \ libopenoffice-oodoc-perl \ postgresql-client \ ssmtp \ @@ -85,9 +85,11 @@ RUN mkdir -p /tmp && \ chmod 1777 /tmp # Internal Port Expose -EXPOSE 5000 +EXPOSE 5001 + # If ledgersmb.conf does not exist, www-data user needs to be able to create it. RUN chown www-data /srv/ledgersmb + USER www-data CMD ["start.sh"] diff --git a/start.sh b/start.sh index cfff8ad..b09ee13 100755 --- a/start.sh +++ b/start.sh @@ -32,4 +32,6 @@ done ; echo "Selected PERL5LIB=$PERL5LIB"; # start ledgersmb -exec starman --port 5000 tools/starman.psgi +exec plackup --port 5001 --server HTTP::Server::PSGI tools/starman.psgi \ + --Reload "lib, old/lib, xt/lib" +