From 82cfc97abbd65c1b208b4721dd79ca3b0c8f7788 Mon Sep 17 00:00:00 2001 From: life Date: Wed, 7 May 2014 15:32:08 +0800 Subject: [PATCH] conf --- README.md | 26 +++++++++++++++++++++++++- conf/app-default.conf | 2 +- 2 files changed, 26 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index b507004..4fcc7ab 100644 --- a/README.md +++ b/README.md @@ -62,7 +62,7 @@ default is 80 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 ``` @@ -72,5 +72,29 @@ sh run.sh ## How to develop leanote +leanote is a app based on revel(http://revel.github.io), so if you want to develop leanote as you want, you must be familar with revel. + +### install golang + +install golang and set GOPATH + +### install revel +* go get github.com/revel/revel +* go get github.com/revel/cmd/revel + +### get leanote +* go get github.com/leanote/leanote/app + +### build/run leanote via revel + +now you can modify leanote source and build/run with revel + +``` +revel run github.com/leanote/leanote +``` + +Welcome contribute your code to leanote! Thanks. + ## License + leanote is released as open-source software under the GNU General Public License (GPL), version 2 or later. diff --git a/conf/app-default.conf b/conf/app-default.conf index 8c72278..2001071 100644 --- a/conf/app-default.conf +++ b/conf/app-default.conf @@ -4,7 +4,7 @@ http.port=80 -site.url=http://leanote.com +site.url=http://localhost # the administrator username adminUsername=admin