Commit fef0cc43 authored by Felix Delattre's avatar Felix Delattre

made pelican serve webserver

parent 7a30482c
......@@ -12,11 +12,12 @@ RUN export DEBIAN_FRONTEND=noninteractive && \
python3-virtualenv \
python3-dev \
python3-setuptools \
pelican \
npm
# Install pelican and dependencies
COPY files/start.sh /start.sh
COPY files/requirements.txt requirements.txt
COPY files/start.sh /start.sh
RUN pip3 install wheel
RUN pip3 install -r requirements.txt
RUN npm install -g npm@latest
......
......@@ -8,7 +8,6 @@ Markdown
markdown-include
markdown-attr-plus
MarkupSafe
pelican
pelican-alias
pelican-webassets
pillow
......
......@@ -2,7 +2,7 @@
##
# This section should match your Makefile
##
PY=${PY:-python}
PY=${PY:-python3}
PELICAN=${PELICAN:-pelican}
PELICANOPTS=
......@@ -64,7 +64,7 @@ function start_up(){
echo "Starting up Pelican and HTTP server"
shift
cd $BASEDIR;
$PELICAN --debug --autoreload -r $INPUTDIR -o $OUTPUTDIR -s $CONFFILE $PELICANOPTS &
$PELICAN --debug --autoreload -r $INPUTDIR -o $OUTPUTDIR -s $CONFFILE $PELICANOPTS -p $port -b 0.0.0.0 &
pelican_pid=$!
echo $pelican_pid > $PELICAN_PID
if ! alive $pelican_pid ; then
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment