X-Git-Url: https://feistymeow.org/gitweb/?a=blobdiff_plain;f=scripts%2Fsite_avenger%2Fconfig%2Fdefault.app;h=46dbd3a76da5e16e975650c6e127a1f8b441673b;hb=bf865883121e36604f3bf2dcf2638adb3b8b0423;hp=65e782d7b02664a3a08cf7cbf340d564b0a680e7;hpb=f63ace5a19fa84c8daf669684ac189575d1eb25b;p=feisty_meow.git diff --git a/scripts/site_avenger/config/default.app b/scripts/site_avenger/config/default.app index 65e782d7..46dbd3a7 100644 --- a/scripts/site_avenger/config/default.app +++ b/scripts/site_avenger/config/default.app @@ -1,44 +1,73 @@ #!/bin/bash -# this config file provides the default values for the variables used in our site management scripts. +# provides the default values for the variables used in our site management scripts. + +# config files for site avenger apps usually override nothing, since we +# auto-construct the app name and domain. +# if they do need to override anything, they can just specify replacement +# values for the variables in this file. #### # basic information that is constant for all site avenger sites. -APPLICATION_DIR="$HOME/apps" -DEFAULT_REPOSITORY_ROOT="git@github.com:kwentworth" -CHECKOUT_DIR_NAME="avenger5" +# the top level of the user's application storage. +if [ -z "$BASE_APPLICATION_PATH" ]; then + export BASE_APPLICATION_PATH="$HOME/apps" +fi +# where the code should come from. +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. +if [ -z "$STORAGE_SUFFIX" ]; then + export STORAGE_SUFFIX="/public" +fi #### -# config files for site avenger apps usually override nothing, since we -# auto-construct the app name and domain. but if they do need to override -# anything, it will be below this point in the file. -# the derived config file should include the basic configs like so: -# -# source "$WORKDIR/config/default.app" +#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. +export IP_ADDRESS="10.28.42.20" +# the email address (where first dot is replaced by @) for the administrator of the domain. +export SERVER_ADMIN="developer.cakelampvm.com" +# the name of the name server for the new domains (should already be configured). +export MAIN_NAME_SERVER="ns.cakelampvm.com" +# the name of the mail server for a new domain (should already be configured). +export MAIL_SERVER="mail.cakelampvm.com" +# the distribution name to be listed in info for the new domain or subdomain. +export DISTRO="ubuntu" #### # deployment information for the application / site. -APPLICATION_NAME="${app_dirname}" +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. -DOMAIN_NAME="${app_dirname}.vm" +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" -REPO_NAME="${app_dirname}.git" +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" -THEME_NAME="$(capitalize_first_char "${app_dirname}.git")" +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" ####