really close for simple powerups
[feisty_meow.git] / scripts / site_avenger / config / default.app
index 0235eb5074a7334736f64b69d51b648cf40fc988..46dbd3a76da5e16e975650c6e127a1f8b441673b 100644 (file)
 # 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="$HOME/apps"
+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"
 
 ####