Fix broken CSS links to assets in development

This depends on an environment variable being set when the assets
are built in a development context [1]. Otherwise, the assets get
their '/static' prefix stripped like they do for production, which
isn't compatible with serving them under '/static' in development.

[1]: 66e5022198/gulpfile.js (L37-L41)
This commit is contained in:
Ben Thorner
2021-10-18 16:39:59 +01:00
parent 66e5022198
commit f8d97821a2

View File

@@ -25,7 +25,7 @@ VIRTUALENV_ROOT := $(shell [ -z $$VIRTUAL_ENV ] && echo $$(pwd)/venv || echo $$V
.PHONY: bootstrap
bootstrap: generate-version-file ## Set up everything to run the app
pip3 install -r requirements_for_test.txt
npm install && npm run build
npm install && NOTIFY_ENVIRONMENT=development npm run build
.PHONY: run-flask
run-flask: ## Run flask