diff --git a/README.md b/README.md index 9951ad2..b507004 100644 --- a/README.md +++ b/README.md @@ -1,5 +1,3 @@ -We will upload leanote as soon as possible. Thanks for watching leanote. - ## Introduction leanote, it's a cloud note. You can create your own cloud note in leanote. @@ -25,9 +23,9 @@ go http://www.mongodb.org to download and install it. ### Export initial mongodb data -the mongodb data in leante/mongodb_backup/leanote_install_data +the mongodb data in path_to_leante/mongodb_backup/leanote_install_data ``` -mongorestore -h localhost -d leanote --directoryperdb path_to_leanote_install_data +mongorestore -h localhost -d leanote --directoryperdb path_to_leante/mongodb_backup/leanote_install_data ``` the initial data contains two users ``` @@ -35,7 +33,8 @@ user1 username: leanote, password: abc123 user2 username: admin, password: abc123 ``` -### Configure conf/app.conf +### Configuration +rename path_to_leante/conf/app-default.conf to path_to_leante/conf/app.conf ``mongodb`` **required** @@ -66,16 +65,9 @@ default is admin. The index site is the adminUsername's blog for more infomation please see app/app.conf and revel manuals http://revel.github.io/ ### Run leanote -consume the leanote' path is LP - -* cd LP/bin -* set GOPATH ``` -export GOPATH=$GOPATH:`pwd` -``` -* run leanote -``` -./leanote -importPath=github.com/leanote/leanote +cd path_to_leanote/bin +sh run.sh ``` ## How to develop leanote diff --git a/app/bin/i18n b/app/bin/i18n new file mode 100755 index 0000000..ab955af Binary files /dev/null and b/app/bin/i18n differ diff --git a/app/bin/leanote-mac b/app/bin/leanote-mac new file mode 100755 index 0000000..2d0bb9d Binary files /dev/null and b/app/bin/leanote-mac differ diff --git a/app/bin/release b/app/bin/release new file mode 100755 index 0000000..4e78adf Binary files /dev/null and b/app/bin/release differ diff --git a/app/bin/run.sh b/app/bin/run.sh new file mode 100644 index 0000000..c7347d7 --- /dev/null +++ b/app/bin/run.sh @@ -0,0 +1,20 @@ +#!/bin/sh +SCRIPTPATH=$(cd "$(dirname "$0")"; pwd) + +# set link +path="$SCRIPTPATH/src/github.com/leanote" +if [ ! -d "$path" ]; then + mkdir -p "$path" +fi +ln -s ../../../../ $SCRIPTPATH/src/github.com/leanote/leanote + +# set GOPATH +export GOPATH=$GOPATH:$SCRIPTPATH + +# run +osName=`uname` +if [ $osName == "Darwin" ]; then + "$SCRIPTPATH/leanote-mac" -importPath github.com/leanote/leanote +else + "$SCRIPTPATH/leanote-linux" -importPath github.com/leanote/leanote +fi \ No newline at end of file diff --git a/app/bin/test b/app/bin/test new file mode 100755 index 0000000..4e7f8fd Binary files /dev/null and b/app/bin/test differ diff --git a/app/bin/tmp b/app/bin/tmp new file mode 100755 index 0000000..2d0bb9d Binary files /dev/null and b/app/bin/tmp differ diff --git a/app/lea/html2image/Html2Image.go b/app/lea/html2image/Html2Image.go index 0dcd902..be6e540 100644 --- a/app/lea/html2image/Html2Image.go +++ b/app/lea/html2image/Html2Image.go @@ -1,8 +1,8 @@ package html2image import ( - "leanote/app/lea" - "leanote/app/lea/netutil" + "github.com/leanote/leanote/app/lea" + "github.com/leanote/leanote/app/lea/netutil" "bufio" "code.google.com/p/draw2d/draw2d" // "fmt" diff --git a/app/lea/netutil/NetUtil.go b/app/lea/netutil/NetUtil.go index 1fccab3..21b156c 100644 --- a/app/lea/netutil/NetUtil.go +++ b/app/lea/netutil/NetUtil.go @@ -5,7 +5,7 @@ import ( // "path/filepath" "net/http" "io/ioutil" - . "leanote/app/lea" + . "github.com/leanote/leanote/app/lea" ) // netēš„util