Skip to content

Commit

Permalink
功能:支持mysql数据库
Browse files Browse the repository at this point in the history
  • Loading branch information
jicg committed Oct 15, 2018
1 parent 0ba9e96 commit 234a08c
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 14 deletions.
1 change: 0 additions & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@ COPY --from=0 /go/src/github.com/jicg/liteblog/static /app/static
COPY --from=0 /go/src/github.com/jicg/liteblog/conf /app/conf

VOLUME /app/data
VOLUME /app/conf
VOLUME /app/assert

EXPOSE 8080
Expand Down
11 changes: 6 additions & 5 deletions conf/app.conf
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
appname = liteblog
httpport = 8080
runmode = dev
#autotls=true
#enablehttps=true
#prod
httpport = ${liteblog_httpport||8080}
runmode = ${liteblog_runmode||prod}

[database]
type=${liteblog_db_type||sqlite3}
url=${liteblog_db_url}
8 changes: 0 additions & 8 deletions start.sh
Original file line number Diff line number Diff line change
Expand Up @@ -6,12 +6,4 @@ if [ ! -d "/app/assert" ] ; then
mkdir /app/assert
fi

if [ ! -f "/app/conf/app.conf" ] ; then
touch /app/conf/app.conf
sed -i 's/^appname.*/appname=liteblog/g' conf/app.conf
sed -i 's/^httpport.*/httpport=8080/g' conf/app.conf
sed -i 's/^runmode.*/runmode=prov/g' conf/app.conf

fi

liteblog

0 comments on commit 234a08c

Please sign in to comment.