You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
After installing hawthorn bare, I am able to start the production version.
However, both, the lms and the studio on the production side does not load the static files at all. I get a 404 for javascript files., csss etc.
Any ideas?
Thanks
The text was updated successfully, but these errors were encountered:
With production settings, we use nginx to serve static/media files (and not Django's development server). Hence, you need to collect static files using the dev-assetsMakefile target:
Since we do not have a straight way to collect files, I propose to include the following Makefile commands:
dev-gen-static-lms: ## run update_assets to copy required statics in local volumes
$(COMPOSE_RUN) --no-deps lms-dev \
python manage.py lms collectstatic --link --noinput --settings=fun.docker_run
.PHONY: dev-gen-static-lms
dev-gen-static-cms: ## run update_assets to copy required statics in local volumes
$(COMPOSE_RUN) --no-deps lms-dev \
python manage.py cms collectstatic --link --noinput --settings=fun.docker_run
.PHONY: dev-gen-static-cms
Then all the statics file will be generated into <release_folder>/data/static/development
After, I also propose two solution for updating the static files. The first will be include a new command on the Makefile to push the static files to nginx + edx production using the command docker cp, or just make the /data/static/production folder a docker volume for nginx container.
After installing hawthorn bare, I am able to start the production version.
However, both, the lms and the studio on the production side does not load the static files at all. I get a 404 for javascript files., csss etc.
Any ideas?
Thanks
The text was updated successfully, but these errors were encountered: