Giter VIP home page Giter VIP logo

Comments (5)

sebpeterson avatar sebpeterson commented on September 25, 2024

Well, for now I will be doing this in my supervisord.conf

command=/bin/bash -c "python /code/manage.py collectstatic --noinput; gunicorn --workers 1 --timeout=300 --reload --bind unix:/app.sock app.wsgi"

from django-components.

EmilStenstrom avatar EmilStenstrom commented on September 25, 2024

Could this be the same bug as this? #191

from django-components.

sebpeterson avatar sebpeterson commented on September 25, 2024

I am not using the development server, so I don't think its related.
I really want to confirm that collectstatic is required to get component changes updated on the server?

from django-components.

EmilStenstrom avatar EmilStenstrom commented on September 25, 2024

I'm afraid I'm not running django_components in production right now, so I don't have any alternative deployment scenario that does not use collectstatic to compare with. Maybe @lemontheme has some insights here?

from django-components.

lemontheme avatar lemontheme commented on September 25, 2024

Hi there. Neither am I at the moment. (Or Django at all for that matter, since my responsibilities have shifted recently.)

In any case, I can confirm that re-running collectstatic upon file changes is the best way if you want all your static files to appear in the same static output directory.

If I recall correctly, this was less of an issue when using the Django dev server. At deployment time, one would run collectstatic once as part of the 'build' process. In terms of DX, it's not perfect, but it lets us re-use builtin Django functionality rather than write extra custom logic.

Does that more or less answer your question? :)

from django-components.

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.