fix
This commit is contained in:
20
README.md
20
README.md
@ -1,5 +1,3 @@
|
|||||||
We will upload leanote as soon as possible. Thanks for watching leanote.
|
|
||||||
|
|
||||||
## Introduction
|
## Introduction
|
||||||
|
|
||||||
leanote, it's a cloud note. You can create your own cloud note in leanote.
|
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
|
### 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
|
the initial data contains two users
|
||||||
```
|
```
|
||||||
@ -35,7 +33,8 @@ user1 username: leanote, password: abc123
|
|||||||
user2 username: admin, 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**
|
``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/
|
for more infomation please see app/app.conf and revel manuals http://revel.github.io/
|
||||||
|
|
||||||
### Run leanote
|
### Run leanote
|
||||||
consume the leanote' path is LP
|
|
||||||
|
|
||||||
* cd LP/bin
|
|
||||||
* set GOPATH
|
|
||||||
```
|
```
|
||||||
export GOPATH=$GOPATH:`pwd`
|
cd path_to_leanote/bin
|
||||||
```
|
sh run.sh
|
||||||
* run leanote
|
|
||||||
```
|
|
||||||
./leanote -importPath=github.com/leanote/leanote
|
|
||||||
```
|
```
|
||||||
|
|
||||||
## How to develop leanote
|
## How to develop leanote
|
||||||
|
BIN
app/bin/i18n
Executable file
BIN
app/bin/i18n
Executable file
Binary file not shown.
BIN
app/bin/leanote-mac
Executable file
BIN
app/bin/leanote-mac
Executable file
Binary file not shown.
BIN
app/bin/release
Executable file
BIN
app/bin/release
Executable file
Binary file not shown.
20
app/bin/run.sh
Normal file
20
app/bin/run.sh
Normal file
@ -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
|
BIN
app/bin/test
Executable file
BIN
app/bin/test
Executable file
Binary file not shown.
BIN
app/bin/tmp
Executable file
BIN
app/bin/tmp
Executable file
Binary file not shown.
@ -1,8 +1,8 @@
|
|||||||
package html2image
|
package html2image
|
||||||
|
|
||||||
import (
|
import (
|
||||||
"leanote/app/lea"
|
"github.com/leanote/leanote/app/lea"
|
||||||
"leanote/app/lea/netutil"
|
"github.com/leanote/leanote/app/lea/netutil"
|
||||||
"bufio"
|
"bufio"
|
||||||
"code.google.com/p/draw2d/draw2d"
|
"code.google.com/p/draw2d/draw2d"
|
||||||
// "fmt"
|
// "fmt"
|
||||||
|
@ -5,7 +5,7 @@ import (
|
|||||||
// "path/filepath"
|
// "path/filepath"
|
||||||
"net/http"
|
"net/http"
|
||||||
"io/ioutil"
|
"io/ioutil"
|
||||||
. "leanote/app/lea"
|
. "github.com/leanote/leanote/app/lea"
|
||||||
)
|
)
|
||||||
|
|
||||||
// net的util
|
// net的util
|
||||||
|
Reference in New Issue
Block a user