mirror of
https://github.com/mindoc-org/mindoc.git
synced 2025-10-24 10:11:32 +08:00
update Dockerfile
This commit is contained in:
10
start.sh
10
start.sh
@@ -1,10 +1,10 @@
|
||||
#!/bin/sh
|
||||
set -e
|
||||
|
||||
cd /go/src/github.com/lifei6671/mindoc/
|
||||
cd /mindoc/
|
||||
|
||||
if [ ! -f "/go/src/github.com/lifei6671/mindoc/conf/app.conf" ] ; then
|
||||
cp /go/src/github.com/lifei6671/mindoc/conf/app.conf.example /go/src/github.com/lifei6671/mindoc/conf/app.conf
|
||||
if [ ! -f "/mindoc/conf/app.conf" ] ; then
|
||||
cp /mindoc/conf/app.conf.example /mindoc/conf/app.conf
|
||||
sed -i "s#^db_adapter=.*#db_adapter=sqlite3#g" conf/app.conf
|
||||
sed -i "s#^db_database.*#db_database=./database/mindoc.db#g" conf/app.conf
|
||||
fi
|
||||
@@ -82,5 +82,5 @@ fi
|
||||
|
||||
sed -i 's/^runmode.*/runmode=prod/g' conf/app.conf
|
||||
|
||||
/go/src/github.com/lifei6671/mindoc/mindoc_linux_amd64 install
|
||||
/go/src/github.com/lifei6671/mindoc/mindoc_linux_amd64
|
||||
/mindoc/mindoc_linux_amd64 install
|
||||
/mindoc/mindoc_linux_amd64
|
||||
Reference in New Issue
Block a user