浏览代码

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

xewk 7 年之前
父节点
当前提交
cd61774707
共有 5 个文件被更改,包括 7 次插入13 次删除
  1. 0 4
      .env
  2. 2 1
      .gitattributes
  3. 2 2
      Dockerfile
  4. 0 3
      docker-compose.yml
  5. 3 3
      start.sh

+ 0 - 4
.env

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

+ 2 - 1
.gitattributes

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

+ 2 - 2
Dockerfile

@@ -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
 

+ 0 - 3
docker-compose.yml

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

+ 3 - 3
start.sh

@@ -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