1. 因编译遇到问题目录结构调整回来了,后期学习go知识来调整新目录

pull/190/head
xewk 2018-01-06 15:43:39 +08:00
parent 88c9f6b18e
commit cd61774707
5 changed files with 7 additions and 13 deletions

4
.env
View File

@ -2,10 +2,6 @@
# General Setup
###########################################################
### Application Path ###################################################################################################
# Point to your code, will be available at `/var/www/mindoc`.
APPLICATION=../mindoc_volume/
### GLOBAL ENVIRONMENT #################################################################################################

3
.gitattributes vendored
View File

@ -1,2 +1,3 @@
*.js linguist-language=Go
*.css linguist-language=Go
*.css linguist-language=Go
./.env

View File

@ -7,9 +7,9 @@ RUN cp /etc/apk/repositories /etc/apk/repositories.back && \
RUN apk add --update bash git make gcc g++
ADD . /var/www/mindoc
ADD . /go/src/github.com/lifei6671/mindoc
WORKDIR /var/www/mindoc
WORKDIR /go/src/github.com/lifei6671/mindoc
RUN chmod +x start.sh

View File

@ -6,9 +6,6 @@ services:
applications:
image: tianon/true
volumes:
- ${APPLICATION}:/var/www/mindoc
### Workspace Utilities Container ###########################
mindoc:

View File

@ -1,7 +1,7 @@
#!/bin/sh
set -e
cd /var/www/mindoc
cd /go/src/github.com/lifei6671/mindoc/
if [ ! -f "conf/app.conf" ] ; then
cp conf/app.conf.example conf/app.conf
@ -45,6 +45,6 @@ fi
sed -i 's/^runmode.*/runmode=prod/g' conf/app.conf
/var/www/mindoc/mindoc_linux_amd64 install
/go/src/github.com/lifei6671/mindoc/mindoc_linux_amd64 install
/var/www/mindoc/mindoc_linux_amd64
/go/src/github.com/lifei6671/mindoc/mindoc_linux_amd64