env_preview.sh 873 Bytes
Newer Older
Masaru Abe committed
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17
#!/bin/sh
PROTOCOL=$1
DOMAIN=$2

modify_api()
{
	URI_PREFIX=$1
	cat > abvw/common/json/sys/conf.json << EOF
{
        "apiUrl"              : "$URI_PREFIX/{0}/abvapi",
        "apiLoginUrl"         : "$URI_PREFIX/nuabvapi",
        "apiResourceDlUrl"    : "$URI_PREFIX/{0}/dl",
        "bookShelfCount"      : 15,
        "bookListCount"       : 15,
        "screenlockTimeDefault" : 30,
        "pushPageCount"       : 5,
        "pushTimePeriod"      : 60,
18
        "debug"               : false,
Masaru Abe committed
19 20 21 22 23
        "loginPage"           : "index.html",
        "anonymousLoginFlg"   : false,
        "anonymousLoginPath"  : "test",
        "anonymousLoginId"    : "nologin",
        "appName"             : "ABookWebCL",
Masaru Abe committed
24 25 26
        "appVersion"          : "0.0.1",
        "optMusicMode"        : 1,
        "previewFlg"          : true
Masaru Abe committed
27 28 29 30
}
EOF
}

Masaru Abe committed
31
modify_api "$PROTOCOL://$DOMAIN/acms"
Masaru Abe committed
32