really close for simple powerups
[feisty_meow.git] / scripts / site_avenger / config / default.app
1 #!/bin/bash
2
3 # provides the default values for the variables used in our site management scripts.
4
5 # config files for site avenger apps usually override nothing, since we
6 # auto-construct the app name and domain.
7 # if they do need to override anything, they can just specify replacement
8 # values for the variables in this file.
9
10 ####
11
12 # basic information that is constant for all site avenger sites.
13
14 # the top level of the user's application storage.
15 if [ -z "$BASE_APPLICATION_PATH" ]; then
16   export BASE_APPLICATION_PATH="$HOME/apps"
17 fi
18 # where the code should come from.
19 if [ -z "$DEFAULT_REPOSITORY_ROOT" ]; then
20   export DEFAULT_REPOSITORY_ROOT="git@github.com:kwentworth"
21 fi
22 # we checkout the git repository to a directory underneath the app storage
23 # directory named this (see below for "this"), if that directory name is found.
24 # this is a saco designs infrastructure standard.
25 if [ -z "$CHECKOUT_DIR_NAME" ]; then
26   export CHECKOUT_DIR_NAME="avenger5"
27 fi
28 # the subfolder that the web browser will look for the site in,
29 # underneath the application's specific path.
30 if [ -z "$STORAGE_SUFFIX" ]; then
31   export STORAGE_SUFFIX="/public"
32 fi
33
34 ####
35
36 #hmmm: below does not have any protection to avoid overriding existing values, like above does.  do we need more?
37
38 # constants within our cakelampvm machine.
39
40 # in our scheme, the single IP address that all our domains map to.
41 export IP_ADDRESS="10.28.42.20"
42 # the email address (where first dot is replaced by @) for the administrator of the domain.
43 export SERVER_ADMIN="developer.cakelampvm.com"
44 # the name of the name server for the new domains (should already be configured).
45 export MAIN_NAME_SERVER="ns.cakelampvm.com"
46 # the name of the mail server for a new domain (should already be configured).
47 export MAIL_SERVER="mail.cakelampvm.com"
48 # the distribution name to be listed in info for the new domain or subdomain.
49 export DISTRO="ubuntu"
50
51 ####
52
53 # deployment information for the application / site.
54
55 export APPLICATION_NAME="${app_dirname}"
56
57 echo "$(date_stringer): app name was computed as $APPLICATION_NAME" >> "$SSM_LOG_FILE"
58
59 # change this if the site is on the "real" internet.
60 export DOMAIN_NAME="${app_dirname}.vm"
61
62 echo "$(date_stringer): domain name was computed as $DOMAIN_NAME" >> "$SSM_LOG_FILE"
63
64 export REPO_NAME="${app_dirname}"
65
66 echo "$(date_stringer): repo name was computed as $REPO_NAME" >> "$SSM_LOG_FILE"
67
68 export THEME_NAME="$(capitalize_first_char "${app_dirname}")"
69
70 echo "$(date_stringer): theme name was computed as $THEME_NAME" >> "$SSM_LOG_FILE"
71
72 ####
73