Skip to content
This repository has been archived by the owner on Jul 15, 2022. It is now read-only.

fab publish deletes collectstatic output #102

Open
mikejcorey opened this issue Jun 13, 2015 · 1 comment
Open

fab publish deletes collectstatic output #102

mikejcorey opened this issue Jun 13, 2015 · 1 comment

Comments

@mikejcorey
Copy link

If you need admin media, e.g., fab publish runs fab reset, which kills the static directory created/filled by collectstatic

@aboutaaron
Copy link
Contributor

It kills static because compress and grunt-build modify the directory, but you're right that it prevents media from outside Django applications from being accessed. I was typically publishing flat graphics to S3 and compressing the external JS/CSS so collectstatic wasn't necessary. This workflow won't work for sever-side apps so perhaps it's worth creating separate build/deploy commands based on how you want to host the app.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants