Skip to content
This repository has been archived by the owner on May 2, 2022. It is now read-only.

Merge changes from upstream to fix "rm: cannot remove '/app': Read-only file system" #2

Open
wants to merge 4 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Heroku Multi Procfile buildpack
# Heroku Monorepo Buildpack

Imagine you have a single code base, which has a few different applications within it... or at least the ability to run a few different applications. Or, maybe you're Google with your mono repo?

Expand Down
8 changes: 6 additions & 2 deletions bin/compile
Original file line number Diff line number Diff line change
@@ -1,4 +1,8 @@
#!/usr/bin/env bash

# Ensure wildcards in globs match dotfiles too.
shopt -s dotglob

indent() {
sed -u 's/^/ /'
}
Expand All @@ -16,8 +20,8 @@ APP_BASE="$(cat "${ENV_DIR}/APP_BASE")"

(
mv "${BUILD_DIR}/${APP_BASE}" "${STAGE}" &&
rm -rf "${BUILD_DIR}" &&
mv "${STAGE}/$(basename "$APP_BASE")" "${BUILD_DIR}"
rm -rf "${BUILD_DIR}"/* &&
mv "${STAGE}/$(basename "$APP_BASE")"/* "${BUILD_DIR}"
)

if [ $? -ne 0 ]; then
Expand Down