diff --git a/start.sh b/start.sh index 66664732..7f8e5a32 100644 --- a/start.sh +++ b/start.sh @@ -27,10 +27,22 @@ if [ ! -z $MYSQL_PASSWORD ] ; then sed -i 's/^db_password.*/db_password='$MYSQL_PASSWORD'/g' conf/app.conf fi -if [ ! -z $HTTP_PORT] ; then +if [ ! -z $HTTP_PORT ] ; then sed -i 's/^httpport.*/httpport='$HTTP_PORT'/g' conf/app.conf fi +if [ ! -z $CDNJS ]; then + sed -i 's/^cdnjs.*/cdnjs='$CDNJS'/g' conf/app.conf +fi + +if [ ! -z $CDNCSS ]; then + sed -i 's/^cdncss.*/cdncss='$CDNCSS'/g' conf/app.conf +fi + +if [ ! -z $CDN ]; then + sed -i 's/^cdn.*/cdnjs='$CDN'/g' conf/app.conf +fi + sed -i 's/^runmode.*/runmode=prod/g' conf/app.conf /go/src/github.com/lifei6671/godoc/godoc_linux_amd64 install