Hilft Dir dabei, Deine BÜNDNIS 90/DIE GRÜNEN Website zu optimieren https://green-spider.netzbegruenung.de/
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 

31 lines
663 B

.PHONY: webapp dockerimage
# Build docker image
dockerimage:
docker pull debian:stretch-slim
docker build -t spider .
# Run spider in docker image
spider: dockerimage
docker run --rm -ti -v $(PWD)/webapp/dist/data:/out spider
test: dockerimage
docker run --rm -ti spider /spider_test.py
screenshots: venv
docker pull netzbegruenung/green-spider-screenshotter:latest
venv/bin/python ./screenshots.py
webapp/node_modules:
cd webapp && npm install
# Build webapp
webapp: webapp/node_modules
cd webapp && npx webpack --config webpack.config.js
rm -rf ./docs/*
cp -r webapp/dist/* ./docs/
serve-webapp:
cd docs && ../venv/bin/python -m http.server