Giter Club home page Giter Club logo

Comments (3)

jmaupetit avatar jmaupetit commented on June 29, 2024

Hi @moticanvm 👋

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-assets Makefile target:

$ make dev-assets

Reference: https://github.com/openfun/openedx-docker/blob/master/Makefile#L194

from openedx-docker.

moticanvm avatar moticanvm commented on June 29, 2024

Hi everyone,

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.

from openedx-docker.

jmaupetit avatar jmaupetit commented on June 29, 2024

I am sorry @moticanvm, I am not sure that: 1. my first answer was relevant, and, 2. what kind of issue you are facing.

Can you please reformulate your issue? Static files are missing with production or development settings ? Or both?

from openedx-docker.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.