<div dir="ltr"><div>Hi Eric, Thanks for writing, see inline.<br></div><div><br><div class="gmail_quote"><div dir="ltr">On Wed, Oct 3, 2018 at 4:28 PM Eric Helms <<a href="mailto:ehelms@redhat.com" target="_blank">ehelms@redhat.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">Howdy,<div><br></div><div>When switching a deployment over to use gunicorn, DEBUG = TRUE for serving static files stopped working. I endeavored to follow the production install method using collectstatic. This required setting STATIC_ROOT which appeared to not be set by default.</div><div><br></div><div> 1) Is there a default value for STATIC_ROOT I can set for collectstatic?</div></div></blockquote><div>I think we should set one, and more and more we're having everything live in /var/lib/pulp/<somedir>/ so it could have a default of /var/lib/pulp/static_media/. Do you have any interest in sending us a PR and opening an issue?<br></div><div> <br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div> 2) Can gunicorn serve these static files for me?</div></div></blockquote><div>I looked into doing this a while back and I reached the conclusion that we could but we shouldn't. It is convenient to not have to do anything extra to deploy it, but the Django docs say in several places that we should expressly not do this. Convenience is more than a nicety, the longer Pulp takes to deploy the fewer users we will have. I think the Ansible Installer and templates on openshift should let us do it the recommended way (with apache or nginx, etc) and have it be just as easy for the user. Unfortunately no one has done that ... yet!</div><div><br></div><div>Reach out to me on irc if you want any help with any of those things.<br></div><div> <br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div><br></div><div>I realize the documentation calls for serving static files via a webserver like nginx or Apache. However, that becomes a bit overkill in something like a container deployment. If I run a separate webserver, then I would run it as a separate container and have to mount the static files volume. This felt like overkill to me to have a persistent volume to store and mount static files instead of the application server providing them for the application.</div><div><br></div><div>Any thoughts and help are appreciated.</div><div><br></div><div>Eric</div></div>
_______________________________________________<br>
Pulp-dev mailing list<br>
<a href="mailto:Pulp-dev@redhat.com" target="_blank">Pulp-dev@redhat.com</a><br>
<a href="https://www.redhat.com/mailman/listinfo/pulp-dev" rel="noreferrer" target="_blank">https://www.redhat.com/mailman/listinfo/pulp-dev</a><br>
</blockquote></div></div></div>