refining the config includes approach
authorChris Koeritz <fred@gruntose.com>
Thu, 9 Nov 2017 21:30:32 +0000 (16:30 -0500)
committerChris Koeritz <fred@gruntose.com>
Thu, 9 Nov 2017 21:30:32 +0000 (16:30 -0500)
scripts/site_avenger/config/default-site_avenger.config [new file with mode: 0644]
scripts/site_avenger/config/winterportlibrary.config [new file with mode: 0644]
scripts/site_avenger/configs/default-site_avenger.config [deleted file]
scripts/site_avenger/shared_site_mgr.sh

diff --git a/scripts/site_avenger/config/default-site_avenger.config b/scripts/site_avenger/config/default-site_avenger.config
new file mode 100644 (file)
index 0000000..4b57eba
--- /dev/null
@@ -0,0 +1,23 @@
+
+# this config file provides the default values for the variables used in our site management scripts.
+
+# basic information...
+APPLICATION_DIR="$HOME/apps"
+DEFAULT_REPOSITORY_ROOT="git@github.com:kwentworth"
+CHECKOUT_DIR_NAME="avenger5"
+
+# most config files will only need to override things below this line.
+# they should include the basic configs using this code:
+#   source $WORKDIR/config/default-site_avenger.config
+######################################################################
+
+# deployment information...
+APPLICATION_NAME=mapsdemo
+
+# change this if the site is on the "real" internet.  otherwise, for any
+# sites that are served from the cakelampvm.com vm, the derived config
+# files can just repeat this code.  they *MUST* include it though, since
+# it needs to see their version of the APPLICATION_NAME variable.
+DOMAIN_NAME="${APPLICATION_NAME}.vm"
+
+
diff --git a/scripts/site_avenger/config/winterportlibrary.config b/scripts/site_avenger/config/winterportlibrary.config
new file mode 100644 (file)
index 0000000..1365e42
--- /dev/null
@@ -0,0 +1,7 @@
+
+source $WORKDIR/config/default-site_avenger.config
+
+APPLICATION_NAME=winterportlibrary
+DOMAIN_NAME="${APPLICATION_NAME}.vm"
+
+
diff --git a/scripts/site_avenger/configs/default-site_avenger.config b/scripts/site_avenger/configs/default-site_avenger.config
deleted file mode 100644 (file)
index b5467dc..0000000
+++ /dev/null
@@ -1,8 +0,0 @@
-
-# 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"
-
-
index 41b033febdc1d5140b477e1a77c3a1e14afa7737..cef784e5f7b50fca582a8f7c63950f50d29c2c18 100644 (file)
@@ -14,7 +14,7 @@ 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"
+  SITE_MANAGEMENT_CONFIG_FILE="$WORKDIR/config/default-site_avenger.config"
 fi
 source "$SITE_MANAGEMENT_CONFIG_FILE"
 test_or_die "loading site management configuration from: $SITE_MANAGEMENT_CONFIG_FILE"