add adminUsername on app.conf

This commit is contained in:
lealife
2015-09-17 18:52:10 +08:00
parent a60da3d592
commit 5e37e5a37d
4 changed files with 14 additions and 7 deletions

View File

@ -9,7 +9,7 @@ SP=$(cd "$(dirname "$0")"; pwd)
tmp="/Users/life/Desktop/leanote_release" tmp="/Users/life/Desktop/leanote_release"
# version # version
V="v1.0" V="v1.0.1"
##================================= ##=================================
# 1. 先build 成 3个平台, 2种bit = 6种 # 1. 先build 成 3个平台, 2种bit = 6种
@ -37,11 +37,13 @@ function build()
build "linux" "386"; build "linux" "386";
build "linux" "amd64"; build "linux" "amd64";
build "darwin" "386";
build "darwin" "amd64";
build "windows" "386"; build "windows" "386";
build "windows" "amd64"; build "windows" "amd64";
build "darwin" "386";
build "darwin" "amd64";
##====================== ##======================
# 2. release目录准备工作 # 2. release目录准备工作
@ -133,9 +135,11 @@ function tarRelease()
tarRelease "linux" "386"; tarRelease "linux" "386";
tarRelease "linux" "amd64"; tarRelease "linux" "amd64";
tarRelease "darwin" "386";
tarRelease "darwin" "amd64";
tarRelease "windows" "386"; tarRelease "windows" "386";
tarRelease "windows" "amd64"; tarRelease "windows" "amd64";
tarRelease "darwin" "386";
tarRelease "darwin" "amd64";
# BLOCK' # BLOCK'

View File

@ -13,7 +13,7 @@ if exist "%path%\leanote" del /Q "%path%\leanote"
mklink /D "%path%\leanote" %SCRIPTPATH% mklink /D "%path%\leanote" %SCRIPTPATH%
: set GOPATH : set GOPATH
set GOPATH=%GOPATH%;"%SCRIPTPATH%\bin" set GOPATH="%SCRIPTPATH%\bin"
: run : run
if %processor_architecture%==x86 ( if %processor_architecture%==x86 (

View File

@ -11,7 +11,7 @@ rm -rf $SCRIPTPATH/src/github.com/leanote/leanote # 先删除
ln -s ../../../../ $SCRIPTPATH/src/github.com/leanote/leanote ln -s ../../../../ $SCRIPTPATH/src/github.com/leanote/leanote
# set GOPATH # set GOPATH
export GOPATH=$GOPATH:$SCRIPTPATH export GOPATH=$SCRIPTPATH
# run # run
osName=`uname` # Darwin or Linux osName=`uname` # Darwin or Linux

View File

@ -6,6 +6,9 @@ http.port=9000
site.url=http://localhost:9000 # or http://x.com:8080, http://www.xx.com:9000 site.url=http://localhost:9000 # or http://x.com:8080, http://www.xx.com:9000
# admin username
adminUsername=admin
# mongdb # mongdb
db.host=localhost db.host=localhost
db.port=27017 db.port=27017