Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Allow config/g3w-suite/overrides/static usage while developing #61

Closed
Raruto opened this issue Aug 19, 2022 · 1 comment · Fixed by #62
Closed

Allow config/g3w-suite/overrides/static usage while developing #61

Raruto opened this issue Aug 19, 2022 · 1 comment · Fixed by #62
Labels
feature New feature or request

Comments

@Raruto
Copy link
Collaborator

Raruto commented Aug 19, 2022

As per v3.4 it is only possible to override templates (ref: #58):

- ./config/g3w-suite/overrides/templates:/code/templates:ro

during development it would also be handy to allow overriding of static files, as it already happens for the docker-compose.yml file:

- ./config/g3w-suite/overrides/static:/shared-volume/static/overrides:ro

@Raruto
Copy link
Collaborator Author

Raruto commented Aug 19, 2022

Maybe related to:

g3w-suite/g3w-admin@fb45e5d

Usage info:

cd /code/g3w-admin/
python3 manage.py collectstatic --help
usage: manage.py collectstatic [-h] [--noinput] [--no-post-process] [-i PATTERN] [-n] [-c] [-l] [--no-default-ignore] [--version] [-v {0,1,2,3}] [--settings SETTINGS]
                               [--pythonpath PYTHONPATH] [--traceback] [--no-color] [--force-color]

Collect static files in a single location.

optional arguments:
  -h, --help            show this help message and exit
  --noinput, --no-input
                        Do NOT prompt the user for input of any kind.
  --no-post-process     Do NOT post process collected files.
  -i PATTERN, --ignore PATTERN
                        Ignore files or directories matching this glob-style pattern. Use multiple times to ignore more.
  -n, --dry-run         Do everything except modify the filesystem.
  -c, --clear           Clear the existing files using the storage before trying to copy or link the original file.
  -l, --link            Create a symbolic link to each file instead of copying.
  --no-default-ignore   Don't ignore the common private glob-style patterns (defaults to 'CVS', '.*' and '*~').
  --version             show program's version number and exit
  -v {0,1,2,3}, --verbosity {0,1,2,3}
                        Verbosity level; 0=minimal output, 1=normal output, 2=verbose output, 3=very verbose output
  --settings SETTINGS   The Python path to a settings module, e.g. "myproject.settings.main". If this isn't provided, the DJANGO_SETTINGS_MODULE environment variable
                        will be used.
  --pythonpath PYTHONPATH
                        A directory to add to the Python path, e.g. "/home/djangoprojects/myproject".
  --traceback           Raise on CommandError exceptions
  --no-color            Don't colorize the command output.
  --force-color         Force colorization of the command output.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature New feature or request
Projects
None yet
1 participant