Merge pull request #86 from admpub/master

解决windows环境下问题
This commit is contained in:
Liang Ding 2014-10-24 23:23:47 +08:00
commit 5fedcd6c57
2 changed files with 10 additions and 0 deletions

View File

@ -9,6 +9,7 @@ import (
"runtime"
"strconv"
"time"
"mime"
"github.com/b3log/wide/conf"
"github.com/b3log/wide/editor"
@ -273,6 +274,12 @@ func aboutHandler(w http.ResponseWriter, r *http.Request) {
// 主程序入口.
func main() {
//解决Windows环境下问题
mime.AddExtensionType(".css", "text/css")
mime.AddExtensionType(".js", "application/x-javascript")
mime.AddExtensionType(".json", "application/json")
runtime.GOMAXPROCS(conf.Wide.MaxProcs)
defer glog.Flush()

3
wide-ide.bat Normal file
View File

@ -0,0 +1,3 @@
go install
wide
pause