1
0
mirror of https://github.com/go-gitea/gitea.git synced 2024-11-04 08:17:24 -05:00

add start.sh+bat

This commit is contained in:
skyblue 2014-03-31 15:54:15 +08:00
parent 74ff217c7e
commit 587e6d8089
4 changed files with 13 additions and 2 deletions

View File

@ -5,4 +5,6 @@ filesets:
- conf - conf
- LICENSE - LICENSE
- README.md - README.md
- README_ZH.md - README_ZH.md
- start.bat
- start.sh

2
start.bat Normal file
View File

@ -0,0 +1,2 @@
@echo off
gogs.exe web

6
start.sh Executable file
View File

@ -0,0 +1,6 @@
#!/bin/bash -
#
# start gogs web
#
cd "$(dirname $0)"
./gogs web

3
web.go
View File

@ -160,6 +160,7 @@ func runWeb(*cli.Context) {
base.Cfg.MustValue("server", "HTTP_PORT", "3000")) base.Cfg.MustValue("server", "HTTP_PORT", "3000"))
log.Info("Listen: %s", listenAddr) log.Info("Listen: %s", listenAddr)
if err := http.ListenAndServe(listenAddr, m); err != nil { if err := http.ListenAndServe(listenAddr, m); err != nil {
log.Critical(err.Error()) fmt.Println(err.Error())
//log.Critical(err.Error()) // not working now
} }
} }