You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
bharendt edited this page Jun 6, 2016
·
1 revision
Mono-Repository / App in Subdirectory
If your project to build is in a subdirectory of the git directory, you can set the BUILD_AT config to that subdirectory and adjust it while the repository is pushed to the build host using a pre hook.
It must be reset then to the path containing the subdirectory before building.
# .deliver/config
BUILD_USER="..."
BUILD_AT="/home/$BUILD_USER/builds/$APP"
SUB_DIR="..."# set build directory to sub directory containing the app to build
BUILD_AT="$BUILD_AT/$SUB_DIR"pre_init_app_remotely() {
# store current value to be able to restore it later
ACTUAL_PROJECT_DIR="$DELIVER_TO"# set the build directory to the parent directory of the# app (sub) directory for git operations
DELIVER_TO="$(dirname $DELIVER_TO)"# repeat that for each subdir-level
}
pre_erlang_get_and_update_deps() {
# restore build directory including subdir for building
DELIVER_TO="$ACTUAL_PROJECT_DIR"
}