Skip to content

Commit 8af50d7

Browse files
committed
Add default addons; Unset GIT_DIR
1 parent 3ab03bc commit 8af50d7

File tree

2 files changed

+10
-2
lines changed

2 files changed

+10
-2
lines changed

bin/compile

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ PATH=${build_pack_dir}:$PATH
6161
set -e
6262

6363
# If already cached tarball, means already fetched.
64-
# test -f ${cache_dir}/${elixir_tar} && exit
64+
test -f ${cache_dir}/${elixir_tar} && exit
6565

6666
cd ${cache_dir}
6767
echo "-----> Fetching Elixir ${elixir_version} from ${elixir_source_url}"
@@ -88,7 +88,11 @@ echo `pwd`
8888
cd ${build_dir}
8989
echo `pwd`
9090

91-
echo "-----> Fetching app dependencies"
91+
# Unset this var so that if the parent dir is a git repo, it isn't detected
92+
# And all git operations are performed on the respective repos
93+
unset GIT_DIR
94+
95+
echo "-----> Fetching app dependencies with Mix"
9296
MIX_ENV=prod mix deps.get
9397

9498
echo "-----> Compiling the app"

bin/release

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,10 @@
22

33
cat << EOF
44
---
5+
addons:
6+
- heroku-postgresql:dev
7+
default_process_types:
8+
web: mix server
59
config_vars:
610
PATH: /app/erlang/bin:/app/elixir/bin:bin:/usr/bin:/bin
711
MIX_ENV: prod

0 commit comments

Comments
 (0)