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 V=$1
M=$2 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 dst=../gwt/war
cmn_src=../web/common cmn_src=../web/common
client_src=../web/client client_src=../web/client
@ -19,6 +26,12 @@ function replaceStrings() {
sed -i '' -f replace_html_$M.sed $1 sed -i '' -f replace_html_$M.sed $1
sed -i '' -e s/__VERSION__/$V/g $1 sed -i '' -e s/__VERSION__/$V/g $1
sed -i '' -e s/__THIS_YEAR__/2013/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 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"> <div id="_mLogin">
<table id="_SignInUp"><tbody><tr> <table id="_SignInUp"><tbody><tr>
<td class="title"> <td class="title">
Mailiverse! <span class="version">(__VERSION__)</span> {##TITLE##}! <span class="version">(__VERSION__)</span>
</td> </td>
<td class="offer"> <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> </td>
</tr></tbody></table> </tr></tbody></table>
@ -43,7 +43,7 @@
<td class="left"> <td class="left">
<div class="welcome"> <div class="welcome">
<h1>Mailiverse</h1> <h1>{##TITLE##}</h1>
<p>Secure mail for everyone.</p> <p>Secure mail for everyone.</p>
<ul class="features"> <ul class="features">
<li> <li>
@ -124,7 +124,7 @@
<tr> <tr>
<td class="title"> <td class="title">
<h1>Mailiverse</h1> <h1>{##TITLE##}</h1>
</td> </td>
<td class="search"> <td class="search">
<input id="_mHeader_search" <input id="_mHeader_search"
@ -395,7 +395,7 @@
<div id="_mMain_footer"> <div id="_mMain_footer">
<footer> <footer>
<p>&copy; Benith __THIS_YEAR__</p> <p>&copy; {##COMPANY##} __THIS_YEAR__</p>
</footer> </footer>
</div> </div>

View File

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

View File

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

View File

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