heroku-buildpack-uml/bin/compile

22 lines
445 B
Plaintext
Raw Normal View History

2017-12-10 18:35:49 +00:00
#!/bin/bash -x
2017-12-10 17:06:11 +00:00
export APP="$(realpath "$1")"
export CACHE="$2"
export ENV="$3"
export BP="$(realpath "$(dirname "$0")/..")"
export PATH="$PATH:$BP/bin"
if ! test -d "$CACHE"
then mkdir "$CACHE"
fi
2017-12-10 17:06:11 +00:00
. "$BP/bin/read_config"
tar -xvzf "$BP/uml.tar.gz" -C "$APP"
mkdir "$APP/.profile.d"
2017-12-13 18:03:55 +00:00
cp "$BP/bin/read_config" "$APP/.profile.d/uml_read_config.sh"
cp "$BP/bin/redirect_PORT" "$APP/.profile.d/uml_redirect_PORT.sh"
2017-12-10 17:06:11 +00:00
fix_procfile "$APP/Procfile"