1、实现网站首页

2、实现文档阅读
3、实现项目发布
4、实现用户权限
This commit is contained in:
lifei6671
2017-04-30 22:13:12 +08:00
parent d38417535a
commit ad67558b80
36 changed files with 1486 additions and 233 deletions

40
start.sh Normal file
View File

@@ -0,0 +1,40 @@
#!/bin/sh
set -e
cd /go/src/github.com/lifei6671/godoc/
goFile="godoc"
chmod +x $goFile
if [ ! -f "conf/app.conf" ] ; then
cp conf/app.conf.example conf/app.conf
fi
if [ ! -z $db_host ] ; then
sed -i 's/^db_host.*/db_host='$db_host'/g' conf/app.conf
fi
if [ ! -z $db_port ] ; then
sed -i 's/^db_port.*/db_port='$db_port'/g' conf/app.conf
fi
if [ ! -z $db_database ] ; then
sed -i 's/^db_database.*/db_database='$db_database'/g' conf/app.conf
fi
if [ ! -z $db_username ] ; then
sed -i 's/^db_username.*/db_username='$db_username'/g' conf/app.conf
fi
if [ ! -z $db_password ] ; then
sed -i 's/^db_password.*/db_password='$db_password'/g' conf/app.conf
fi
if [ ! -z $httpport ] ; then
sed -i 's/^httpport.*/httpport='$httpport'/g' conf/app.conf
fi
./$goFile