Permalink
Browse files

added GEM_HOME to wsgi template

  • Loading branch information...
1 parent a4e8945 commit 9c9196e3c0f10fb2e5a2f642ce486c4577c235c4 @blturner committed Apr 11, 2012
Showing with 2 additions and 0 deletions.
  1. +1 −0 stitch/fabfile.py
  2. +1 −0 stitch/templates/wsgi/base.conf
View
@@ -120,6 +120,7 @@ def generate_confs():
context = {
'admin_media': os.path.join(sitepackages, 'django/contrib/admin/media'),
+ 'gem_home': _get('settings_overrides').get('GEM_HOME'),
'pypath': _get('pythonpath').get(host, []),
'site': site,
'sitepackages': sitepackages,
@@ -13,6 +13,7 @@ except:
pass
os.environ['DJANGO_SETTINGS_MODULE'] = '{{ site }}.settings'
+{% if gem_home %}os.environ['GEM_HOME'] = '{{ gem_home }}'{% endif %}
import django.core.handlers.wsgi
application = django.core.handlers.wsgi.WSGIHandler()

0 comments on commit 9c9196e

Please sign in to comment.