Skip to content

Commit 66a22f8

Browse files
committed
Remove debugging
1 parent bbae320 commit 66a22f8

2 files changed

Lines changed: 6 additions & 11 deletions

File tree

README.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -4,11 +4,11 @@ Add as a first buildpack in the chain. Set `PROJECT_PATH` environment variable t
44

55
# How to use:
66
1. `heroku buildpacks:clear` if necessary
7-
1. `heroku buildpacks:set https://github.com/timanovsky/subdir-heroku-buildpack`
8-
1. `heroku buildpacks:add heroku/nodejs` or whatever buildpack you need for your application
9-
1. `heroku config:set PROJECT_PATH=projects/nodejs/frontend` pointing to what you want to be a project root.
10-
1. `heroku config:set KEEPS=./dependencies:./vendor` to specify what you want to keep using GLOBIGNORE syntax.
11-
1. Deploy your project to Heroku.
7+
2. `heroku buildpacks:set https://github.com/timanovsky/subdir-heroku-buildpack`
8+
3. `heroku buildpacks:add heroku/nodejs` or whatever buildpack you need for your application
9+
4. `heroku config:set PROJECT_PATH=projects/nodejs/frontend` pointing to what you want to be a project root.
10+
5. `heroku config:set KEEPS=./dependencies:./vendor` to specify what you want to keep using GLOBIGNORE syntax.
11+
5. Deploy your project to Heroku.
1212

1313
# How it works
1414
The buildpack takes subdirectory you configured, erases everything else, and copies that subdirectory to project root. Then normal Heroku slug compilation proceeds.

bin/compile

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -12,10 +12,8 @@ if [ -f $ENV_DIR/PROJECT_PATH ]; then
1212
PROJECT_PATH=`cat $ENV_DIR/PROJECT_PATH`
1313
if [ -d $BUILD_DIR/$PROJECT_PATH ]; then
1414
echo "-----> Subdir buildpack in $PROJECT_PATH"
15-
echo `pwd`
16-
echo $SHELL
1715

18-
# Optionally, unlink a folder
16+
# Optionally, unlink a folder. This may be needed to keep Gemfiles, etc. unchanged.
1917
UNLINK=''
2018
if [ -f $ENV_DIR/UNLINK ]; then
2119
UNLINK=`cat $ENV_DIR/UNLINK`
@@ -49,9 +47,6 @@ if [ -f $ENV_DIR/PROJECT_PATH ]; then
4947
cp -R $TMP_DIR/. $BUILD_DIR/
5048
echo " cleaning tmp dir $TMP_DIR"
5149
rm -rf $TMP_DIR
52-
53-
echo `ls -1q $BUILD_DIR/*`
54-
5550
exit 0
5651
fi
5752
fi

0 commit comments

Comments
 (0)