#!/usr/bin/env bash
# bin/release <build-dir>

BUILD_DIR=$1

MANAGE_FILE=$(cd "$BUILD_DIR" && find . -maxdepth 3 -type f -name 'manage.py' | head -1)
MANAGE_FILE=${MANAGE_FILE:2}

cat <<EOF
---
config_vars:

EOF


if [[ $MANAGE_FILE ]]; then
cat <<EOF

addons:
  - heroku-postgresql
EOF
fi
