Skip to content
Snippets Groups Projects
Commit 94b2ab43 authored by Kenneth Reitz's avatar Kenneth Reitz
Browse files

disable injection for new applications

parent a21dbc2d
No related branches found
No related tags found
No related merge requests found
#!/usr/bin/env bash
SETTINGS_FILE=$(find . -maxdepth 2 -type f -name 'settings.py' | head -1)
SETTINGS_FILE=$(find . -maxdepth 3 -type f -name 'settings.py' | head -1)
PROJECT=$(dirname $SETTINGS_FILE)
export SETTINGS_FILE PROJECT
# Disable injection for new applications.
if [ ! -f .heroku/injection_disabled ]; then
DISABLE_INJECTION=1
fi
export SETTINGS_FILE PROJECT DISABLE_INJECTION
if [ ! "$DISABLE_INJECTION" ]; then
source injection
fi
source collectstatic
\ No newline at end of file
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment