first cut put the hosts from the config instead of static code

This commit is contained in:
Timothy Prepscius 2013-08-20 23:31:51 -04:00
parent cbaa707ecd
commit 35ef1c624e
6 changed files with 33 additions and 19 deletions

View File

@ -3,6 +3,13 @@
V=$1
M=$2
APP_TITLE=`cat ../deploy/config/title`
HOST_PRIMARY=`cat ../deploy/config/hosts/$M`
HOST_AUTH=`cat ../deploy/config/hosts/auth_$M`
HOST_TOMCAT=`cat ../deploy/config/hosts/tomcat_$M`
HOST_WEB=`cat ../deploy/config/hosts/web_$M`
`
dst=../gwt/war
cmn_src=../web/common
client_src=../web/client
@ -19,6 +26,12 @@ function replaceStrings() {
sed -i '' -f replace_html_$M.sed $1
sed -i '' -e s/__VERSION__/$V/g $1
sed -i '' -e s/__THIS_YEAR__/2013/g $1
sed -i '' -e s/{##TITLE##}/$APP_TITLE/g $1
sed -i '' -e s/{##HOST_PRIMARY##}/$HOST_PRIMARY/g $1
sed -i '' -e s/{##HOST_AUTH##}/$HOST_AUTH/g $1
sed -i '' -e s/{##HOST_TOMCAT##}/$HOST_TOMCAT/g $1
sed -i '' -e s/{##HOST_WEB##}/$HOST_WEB/g $1
}
echo Compiling CSS/JS

1
deploy/config/title Normal file
View File

@ -0,0 +1 @@
Title

View File

@ -32,10 +32,10 @@
<div id="_mLogin">
<table id="_SignInUp"><tbody><tr>
<td class="title">
Mailiverse! <span class="version">(__VERSION__)</span>
{##TITLE##}! <span class="version">(__VERSION__)</span>
</td>
<td class="offer">
New to Mailiverse? <a href="signup.html" class="button button-signup">Create an account</a>
New to {##TITLE##}? <a href="signup.html" class="button button-signup">Create an account</a>
</td>
</tr></tbody></table>
@ -43,7 +43,7 @@
<td class="left">
<div class="welcome">
<h1>Mailiverse</h1>
<h1>{##TITLE##}</h1>
<p>Secure mail for everyone.</p>
<ul class="features">
<li>
@ -124,7 +124,7 @@
<tr>
<td class="title">
<h1>Mailiverse</h1>
<h1>{##TITLE##}</h1>
</td>
<td class="search">
<input id="_mHeader_search"
@ -395,7 +395,7 @@
<div id="_mMain_footer">
<footer>
<p>&copy; Benith __THIS_YEAR__</p>
<p>&copy; {##COMPANY##} __THIS_YEAR__</p>
</footer>
</div>

View File

@ -1,12 +1,12 @@
Constants = {
HOST : "mailiverse.com",
ATHOST : "@mailiverse.com",
HOST : "{##HOST_PRIMARY##}",
ATHOST : "@{##HOST_PRIMARY##}",
AUTH_HOST : "red",
TOMCAT_HOST : "red:8080",
WEB_HOST : "white:8000",
TOMCAT_SERVER : "https://red:8080/Mailiverse/"
AUTH_HOST : "{##HOST_AUTH##}",
TOMCAT_HOST : "{##HOST_TOMCAT##}",
WEB_HOST : "{##HOST_WEB##}",
TOMCAT_SERVER : "https://{##HOST_TOMCAT##}/Mailiverse/"
};

View File

@ -1,10 +1,10 @@
Constants = {
HOST : "mailiverse.com",
ATHOST : "@mailiverse.com",
HOST : "{##HOST_PRIMARY##}",
ATHOST : "@{##HOST_PRIMARY##}",
AUTH_HOST : "mail.mailiverse.com",
TOMCAT_HOST : "mail.mailiverse.com",
WEB_HOST : "www.mailiverse.com",
TOMCAT_SERVER : "https://mail.mailiverse.com/Mailiverse/"
AUTH_HOST : "{##HOST_AUTH##}",
TOMCAT_HOST : "{##HOST_TOMCAT##}",
WEB_HOST : "{##HOST_WEB##}",
TOMCAT_SERVER : "https://{##HOST_TOMCAT##}/Mailiverse/"
};

View File

@ -2,10 +2,10 @@
EmbeddedResources = {
"mail.auth.MailServerAuthenticatorNoThread.truststore.jks.b64" :
"your trust store",
"{##TRUSTSTORE_AUTH##}",
"mail.client.Mailer.send-truststore.jks.b64" :
"your trust store"
"{##TRUSTSTORE_SEND##}"
};
/** resources **/