mods from cakelampvm
authorChris Koeritz <fred@gruntose.com>
Mon, 13 Nov 2017 02:06:53 +0000 (21:06 -0500)
committerChris Koeritz <fred@gruntose.com>
Mon, 13 Nov 2017 02:06:53 +0000 (21:06 -0500)
need to work locally to make this go faster.

scripts/site_avenger/config/default.app
scripts/site_avenger/powerup.sh
scripts/site_avenger/standup.sh
scripts/system/add_domain.sh

index 65e782d7b02664a3a08cf7cbf340d564b0a680e7..2514ddf5fe28302195f6c4d5985fa4470881f2a9 100644 (file)
@@ -6,9 +6,9 @@
 
 # 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"
+export APPLICATION_DIR="$HOME/apps"
+export DEFAULT_REPOSITORY_ROOT="git@github.com:kwentworth"
+export CHECKOUT_DIR_NAME="avenger5"
 
 ####
 
@@ -23,20 +23,20 @@ CHECKOUT_DIR_NAME="avenger5"
 
 # deployment information for the application / site.
 
-APPLICATION_NAME="${app_dirname}"
+export APPLICATION_NAME="${app_dirname}"
 
 echo app name was computed as $APPLICATION_NAME
 
 # 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
 
-REPO_NAME="${app_dirname}.git"
+export REPO_NAME="${app_dirname}.git"
 
 echo repo name was computed as $REPO_NAME
 
-THEME_NAME="$(capitalize_first_char "${app_dirname}.git")"
+export THEME_NAME="$(capitalize_first_char "${app_dirname}.git")"
 
 echo theme name was computed as $THEME_NAME
 
index 998fcad57b4aae9517737ab6ea75bacb654b186e..433b4a1e394cbbc790839b4d1bc1b3c66d8380f7 100644 (file)
@@ -80,6 +80,9 @@ echo "Repository: $repo_name"
 echo "Theme name: $theme_name"
 sep
 
+echo in powerup before update repo with:
+var CHECKOUT_DIR_NAME DEFAULT_REPOSITORY_ROOT
+
 # this should set the site_store_path variable if everything goes well.
 update_repo "$full_app_dir" "$CHECKOUT_DIR_NAME" "$DEFAULT_REPOSITORY_ROOT" "$repo_name"
 test_or_die "Updating the repository storage directory"
index 56684b9cefd8d3bbdc06bb433f6345cb05be7d71..d4beffe074d931c53add212a120a902295dc51e0 100644 (file)
@@ -76,6 +76,9 @@ test_or_die "Setting up apache site for: $APPLICATION_NAME"
 
 sep
 
+echo about to do powerup with: app="$APPLICATION_NAME" repo="$REPO_NAME" theme="$THEME_NAME"
+echo default repo is "$DEFAULT_REPOSITORY_ROOT" 
+
 powerup "$APPLICATION_NAME" "$REPO_NAME" "$THEME_NAME"
 
 sep
index 3c9df992983372a976865d7e91039c87b5f2d145..48d5495c5409bd8b4d410e18aee2d63c4dbb5183 100644 (file)
@@ -9,12 +9,13 @@
 # Author: Chris Koeritz
 
 # some defaults that are convenient for current purposes.
-# hmmm: these would need to be parameterized somehow for this script to become really general.
+
+# hmmm: !!! these would need to be parameterized somehow for this script to become really general.
 
 # in our scheme, the single IP address that all our domains map to.
 IP_ADDRESS="10.28.42.20"
 # the email address (where first dot is replaced by @) for the administrator of the domain.
-SERVER_ADMIN="fred.cakelampvm.com"
+SERVER_ADMIN="developer.cakelampvm.com"
 # the name of the name server for the new domains (should already be configured).
 MAIN_NAME_SERVER="ns.cakelampvm.com"
 # the name of the mail server for a new domain (should already be configured).