Skip to content

Commit

Permalink
Update .gitignore
Browse files Browse the repository at this point in the history
  • Loading branch information
shibingli committed Jan 5, 2020
1 parent e4fbd53 commit 5bf9ba9
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 5 deletions.
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -35,3 +35,5 @@ log/
src/github.com/
src/golang.org/
*.swp
bin/webconsole
conf/conf.json
7 changes: 4 additions & 3 deletions bin/webconsole
Original file line number Diff line number Diff line change
Expand Up @@ -20,15 +20,16 @@
NAME=webconsole

PIDFILE=/opt/webconsole/log/apibox.pid

. /etc/init.d/functions

webconsole_start() {
nohup /opt/webconsole/bin/apibox start >/dev/null 2>&1 &
}

webconsole_stop() {
/opt/webconsole/bin/apibox stop >/dev/null 2>&1 &
rm -f $PIDFILE

/opt/webconsole/bin/apibox stop >/dev/null 2>&1 &
rm -f $PIDFILE
}

case "$1" in
Expand Down
5 changes: 3 additions & 2 deletions conf/conf.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
{
"web": {
"web":
{
"addr": ":8080",
"tls_addr": ":8443",
"tls_url": "https://localhost:8443",
Expand All @@ -19,4 +20,4 @@
"url_timeout": "60s",
"log_level": "Debug"
}
}
}

0 comments on commit 5bf9ba9

Please sign in to comment.