Skip to content

Add ignore patterns for staticfiles to avoid processing symlink dirs - #1935

Merged
wedaly merged 1 commit into
masterfrom
will/ignore-symlink-staticfiles
Dec 16, 2013
Merged

Add ignore patterns for staticfiles to avoid processing symlink dirs#1935
wedaly merged 1 commit into
masterfrom
will/ignore-symlink-staticfiles

Conversation

@wedaly

@wedaly wedaly commented Dec 12, 2013

Copy link
Copy Markdown
Contributor

For complicated reasons, js-test-tool requires that we create symlinks in edx-platform for JavaScript dependencies. These symlinks were being followed when Django collected staticfiles, resulting in staticfiles being collected multiple times.

This PR adds the symlinks to STATICFILES_IGNORE_PATTERNS to skip those directories, which should speed up asset collection (especially on the Vagrant images, where disk writes to shared directories are expensive).

Ideally we wouldn't have to use symlinks at all, but that's a task for another day :)

Suggested reviewers: @cpennington @singingwolfboy

@singingwolfboy

Copy link
Copy Markdown
Contributor

👍

1 similar comment
@cpennington

Copy link
Copy Markdown
Contributor

👍

wedaly pushed a commit that referenced this pull request Dec 16, 2013
Add ignore patterns for staticfiles to avoid processing symlink dirs
@wedaly
wedaly merged commit 7bf6890 into master Dec 16, 2013
@wedaly
wedaly deleted the will/ignore-symlink-staticfiles branch December 16, 2013 17:01
jenkins-ks pushed a commit to nttks/edx-platform that referenced this pull request Jun 23, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants