moved to a more cosmopolitan model for the configuration. we will now load the site avenger config as a default if there is no config file specified.
export WORKDIR="$( \cd "$(\dirname "$0")" && \pwd )" # obtain the script's working directory.
source "$WORKDIR/shared_site_mgr.sh"
-# get our defaults.
-source "$WORKDIR/site_avenger.config"
-
############################
# main body of script.
--- /dev/null
+
+# this script provides the default values for the variables used in our site management scripts.
+
+APPLICATION_DIR="$HOME/apps"
+DEFAULT_REPOSITORY_ROOT="git@github.com:kwentworth"
+CHECKOUT_DIR_NAME="avenger5"
+
+
export WORKDIR="$( \cd "$(\dirname "$0")" && \pwd )" # obtain the script's working directory.
source "$WORKDIR/shared_site_mgr.sh"
-# get our defaults.
-source "$WORKDIR/site_avenger.config"
-
############################
function print_instructions()
# This contains a bunch of reusable functions that help out in managing websites.
+# This script is sourced, and relies on the value of WORKDIR, which should
+# point at the directory where the site management scripts are stored,
+# especially this one.
+
source "$FEISTY_MEOW_SCRIPTS/core/launch_feisty_meow.sh"
+# get our configuration loaded.
+export SITE_MANAGEMENT_CONFIG_FILE
+if [ -z "$SITE_MANAGEMENT_CONFIG_FILE" ]; then
+ SITE_MANAGEMENT_CONFIG_FILE="$WORKDIR/configs/default-site_avenger.config"
+fi
+source "$SITE_MANAGEMENT_CONFIG_FILE"
+test_or_die "loading site management configuration from: $SITE_MANAGEMENT_CONFIG_FILE"
+
# configure feisty revision control to ignore vendor folders.
export NO_CHECKIN_VENDOR=true
+++ /dev/null
-
-# this script provides the default values for the variables used in our site management scripts.
-
-APPLICATION_DIR="$HOME/apps"
-DEFAULT_REPOSITORY_ROOT="git@github.com:kwentworth"
-CHECKOUT_DIR_NAME="avenger5"
-
-
export WORKDIR="$( \cd "$(\dirname "$0")" && \pwd )" # obtain the script's working directory.
source "$WORKDIR/shared_site_mgr.sh"
-# get our defaults.
-source "$WORKDIR/site_avenger.config"
-
############################
# main body of script.
export WORKDIR="$( \cd "$(\dirname "$0")" && \pwd )" # obtain the script's working directory.
source "$WORKDIR/shared_site_mgr.sh"
-# get our defaults.
-source "$WORKDIR/site_avenger.config"
-
############################
# main body of script.