Use plackup and port 5001 to comply with tests

This commit is contained in:
Yves Lavoie 2017-06-28 12:02:22 -04:00
parent 0172780440
commit fe355be93f
2 changed files with 7 additions and 3 deletions

View File

@ -21,7 +21,7 @@ RUN DEBIAN_FRONTENT=noninteractive && \
libmoosex-nonmoose-perl \ libmoosex-nonmoose-perl \
texlive-latex-recommended \ texlive-latex-recommended \
texlive-xetex \ texlive-xetex \
starman \ curl \
libopenoffice-oodoc-perl \ libopenoffice-oodoc-perl \
postgresql-client \ postgresql-client \
ssmtp \ ssmtp \
@ -85,9 +85,11 @@ RUN mkdir -p /tmp && \
chmod 1777 /tmp chmod 1777 /tmp
# Internal Port Expose # Internal Port Expose
EXPOSE 5000 EXPOSE 5001
# If ledgersmb.conf does not exist, www-data user needs to be able to create it. # If ledgersmb.conf does not exist, www-data user needs to be able to create it.
RUN chown www-data /srv/ledgersmb RUN chown www-data /srv/ledgersmb
USER www-data USER www-data
CMD ["start.sh"] CMD ["start.sh"]

View File

@ -32,4 +32,6 @@ done ;
echo "Selected PERL5LIB=$PERL5LIB"; echo "Selected PERL5LIB=$PERL5LIB";
# start ledgersmb # 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"