X-Git-Url: https://feistymeow.org/gitweb/?a=blobdiff_plain;f=scripts%2Fsite_avenger%2Fconfig%2Fdefault.app;h=8ec6ddc2c54e2097a7fa0e134f17e92adba3d9a5;hb=433e814670acb50888d9d58b5f77cfa948b23aa9;hp=0235eb5074a7334736f64b69d51b648cf40fc988;hpb=10175efae90f5cfe3eb806c0e833326cf848f5ec;p=feisty_meow.git diff --git a/scripts/site_avenger/config/default.app b/scripts/site_avenger/config/default.app index 0235eb50..8ec6ddc2 100644 --- a/scripts/site_avenger/config/default.app +++ b/scripts/site_avenger/config/default.app @@ -12,18 +12,29 @@ # basic information that is constant for all site avenger sites. # the top level of the user's application storage. -export BASE_APPLICATION_PATH="$HOME/apps" +if [ -z "$BASE_APPLICATION_PATH" ]; then + export BASE_APPLICATION_PATH="$FEISTY_MEOW_APPS_DIR" +fi # where the code should come from. -export DEFAULT_REPOSITORY_ROOT="git@github.com:kwentworth" -# we checkout the git repository to a directory underneath the -# app storage directory named this: -export CHECKOUT_DIR_NAME="avenger5" +if [ -z "$DEFAULT_REPOSITORY_ROOT" ]; then + export DEFAULT_REPOSITORY_ROOT="git@github.com:kwentworth" +fi +# we checkout the git repository to a directory underneath the app storage +# directory named this (see below for "this"), if that directory name is found. +# this is a saco designs infrastructure standard. +if [ -z "$CHECKOUT_DIR_NAME" ]; then + export CHECKOUT_DIR_NAME="avenger5" +fi # the subfolder that the web browser will look for the site in, # underneath the application's specific path. -export STORAGE_SUFFIX="/public" +if [ -z "$STORAGE_SUFFIX" ]; then + export STORAGE_SUFFIX="/public" +fi #### +#hmmm: below does not have any protection to avoid overriding existing values, like above does. do we need more? + # constants within our cakelampvm machine. # in our scheme, the single IP address that all our domains map to. @@ -43,20 +54,20 @@ export DISTRO="ubuntu" export APPLICATION_NAME="${app_dirname}" -echo app name was computed as $APPLICATION_NAME +echo "$(date_stringer): app name was computed as $APPLICATION_NAME" >> "$SSM_LOG_FILE" # change this if the site is on the "real" internet. export DOMAIN_NAME="${app_dirname}.vm" -echo domain name was computed as $DOMAIN_NAME +echo "$(date_stringer): domain name was computed as $DOMAIN_NAME" >> "$SSM_LOG_FILE" export REPO_NAME="${app_dirname}" -echo repo name was computed as $REPO_NAME +echo "$(date_stringer): repo name was computed as $REPO_NAME" >> "$SSM_LOG_FILE" export THEME_NAME="$(capitalize_first_char "${app_dirname}")" -echo theme name was computed as $THEME_NAME +echo "$(date_stringer): theme name was computed as $THEME_NAME" >> "$SSM_LOG_FILE" ####