diff options
author | skyblue <ssx205@gmail.com> | 2014-03-31 15:54:15 +0800 |
---|---|---|
committer | skyblue <ssx205@gmail.com> | 2014-03-31 15:54:15 +0800 |
commit | 587e6d80890f9e679b13a1511dab6635fd520775 (patch) | |
tree | 22d6e46a31dbc3d30318858d130551c990d67f0a | |
parent | 74ff217c7e8855c5ccf6dbc69cee0823cd65ee1b (diff) | |
download | gitea-587e6d80890f9e679b13a1511dab6635fd520775.tar.gz gitea-587e6d80890f9e679b13a1511dab6635fd520775.zip |
add start.sh+bat
-rw-r--r-- | .gobuild.yml | 4 | ||||
-rw-r--r-- | start.bat | 2 | ||||
-rwxr-xr-x | start.sh | 6 | ||||
-rw-r--r-- | web.go | 3 |
4 files changed, 13 insertions, 2 deletions
diff --git a/.gobuild.yml b/.gobuild.yml index 78a38f2d31..d5bc6606c1 100644 --- a/.gobuild.yml +++ b/.gobuild.yml @@ -5,4 +5,6 @@ filesets: - conf - LICENSE - README.md - - README_ZH.md
\ No newline at end of file + - README_ZH.md + - start.bat + - start.sh diff --git a/start.bat b/start.bat new file mode 100644 index 0000000000..02972b92da --- /dev/null +++ b/start.bat @@ -0,0 +1,2 @@ +@echo off +gogs.exe web diff --git a/start.sh b/start.sh new file mode 100755 index 0000000000..331d340cda --- /dev/null +++ b/start.sh @@ -0,0 +1,6 @@ +#!/bin/bash - +# +# start gogs web +# +cd "$(dirname $0)" +./gogs web @@ -160,6 +160,7 @@ func runWeb(*cli.Context) { base.Cfg.MustValue("server", "HTTP_PORT", "3000")) log.Info("Listen: %s", listenAddr) if err := http.ListenAndServe(listenAddr, m); err != nil { - log.Critical(err.Error()) + fmt.Println(err.Error()) + //log.Critical(err.Error()) // not working now } } |