mirror of
https://github.com/moparisthebest/mailiverse
synced 2024-11-21 08:25:00 -05:00
first cut put the hosts from the config instead of static code
This commit is contained in:
parent
cbaa707ecd
commit
35ef1c624e
@ -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
1
deploy/config/title
Normal file
@ -0,0 +1 @@
|
|||||||
|
Title
|
@ -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>© Benith __THIS_YEAR__</p>
|
<p>© {##COMPANY##} __THIS_YEAR__</p>
|
||||||
</footer>
|
</footer>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
@ -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/"
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
||||||
|
@ -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/"
|
||||||
};
|
};
|
||||||
|
@ -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 **/
|
||||||
|
Loading…
Reference in New Issue
Block a user