Skip to content

Instantly share code, notes, and snippets.

@djshen-ponddy
djshen-ponddy / customize_wsgi.config
Created Oct 13, 2017
Customize AWS Elastic Beanstalk wsgi.conf without being wiped out after update of environment variables
View customize_wsgi.config
files:
"/opt/elasticbeanstalk/hooks/configdeploy/pre/99patchwsgi.py": &file
mode: "000755"
owner: root
group: root
content: |
#!/usr/bin/env python
import os
import sys
sys.path.append(os.path.dirname(os.path.dirname(os.path.dirname(os.path.abspath(__file__)))))