mirror of
https://github.com/kennethreitz/heroku-buildpack-python.git
synced 2026-06-05 23:10:16 +00:00
23 lines
380 B
Bash
Executable File
23 lines
380 B
Bash
Executable File
#!/usr/bin/env bash
|
|
# bin/release <build-dir>
|
|
|
|
BIN_DIR=$(cd $(dirname $0); pwd) # absolute path
|
|
BUILD_DIR=$1
|
|
NAME=$($BIN_DIR/detect $BUILD_DIR) || exit 1
|
|
|
|
cat <<EOF
|
|
---
|
|
config_vars:
|
|
|
|
EOF
|
|
|
|
MANAGE_FILE=$(cd $BUILD_DIR && find . -maxdepth 3 -type f -name 'manage.py' | head -1)
|
|
MANAGE_FILE=${MANAGE_FILE:2}
|
|
|
|
if [[ $MANAGE_FILE ]]; then
|
|
cat <<EOF
|
|
|
|
addons:
|
|
shared-database:5mb
|
|
EOF
|
|
fi |