Skip to content
Snippets Groups Projects
Unverified Commit 389149e9 authored by Sebastian Höffner's avatar Sebastian Höffner
Browse files

Enabling proper flask hot loading by performing a linked installation and...

Enabling proper flask hot loading by performing a linked installation and running the debug docker config as a script rather than a module.
parent 2eb67195
No related branches found
No related tags found
No related merge requests found
......@@ -35,7 +35,7 @@ COPY setup.py requirements.txt README.md /app/
COPY webopenccg /app/webopenccg/
COPY tests /tests
RUN pip3 install /app
RUN pip3 install -e /app
CMD uwsgi --http :8080 \
--uid www-data \
......
......@@ -7,14 +7,14 @@ webopenccg/generated_openccg_parser.py: OpenCCG.ebnf
build:
docker build . -t web-openccg
webopenccg/static/%.js: | build
webopenccg/static/%.js:
docker run --rm --detach --name web-openccg-build-$(notdir $@) web-openccg
docker cp web-openccg-build-$(notdir $@):${CONTAINER_PATH}/$@ $$(pwd)/$@
docker stop web-openccg-build-$(notdir $@)
.PHONY: run
run: webopenccg/static/viz.js webopenccg/static/lite.render.js
docker run --rm -p 5000:5000 -v $$(pwd)/webopenccg:${CONTAINER_PATH}/webopenccg:ro --name web-openccg web-openccg python3 -m webopenccg.webapp
docker run --rm -p 5000:5000 -v $$(pwd)/webopenccg:${CONTAINER_PATH}/webopenccg:ro --name web-openccg web-openccg python3 ${CONTAINER_PATH}/webopenccg/webapp.py
.PHONY: test
test:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment