Skip to content

Commit 128e66d

Browse files
committed
Update Slug Build
Remove `vendor/WordPress` and `public` if `support/app_slug_compile.sh` is run from a Heroku slug compile instance.
1 parent 71a70df commit 128e66d

File tree

3 files changed

+8
-3
lines changed

3 files changed

+8
-3
lines changed

.slugignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,3 +2,4 @@ bin/
22
README.md
33
support/vagrant/
44
Vagrantfile
5+
.sluglocal

.sluglocal

Whitespace-only changes.

support/app_slug_compile.sh

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,10 +11,14 @@ cp -R public/* tmp/public.building
1111
# Move built web dir into place
1212
mkdir -p public.built
1313
mv public.built tmp/public.old && mv tmp/public.building public.built
14-
15-
# Remove files to slim down slug
1614
rm -rf tmp/public.old
17-
rm -rf vendor/WordPress
15+
16+
# Remove files to slim down slug if we're on Heroku
17+
if [ ! -e .sluglocal ]
18+
then
19+
rm -rf vendor/WordPress
20+
rm -rf public
21+
fi
1822

1923
# Write some info about our slug
2024
NOW=$( date )

0 commit comments

Comments
 (0)