mirror of https://github.com/mindoc-org/mindoc.git
1. 因编译遇到问题目录结构调整回来了,后期学习go知识来调整新目录
parent
88c9f6b18e
commit
cd61774707
4
.env
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 #################################################################################################
|
||||
|
||||
|
|
|
@ -1,2 +1,3 @@
|
|||
*.js linguist-language=Go
|
||||
*.css linguist-language=Go
|
||||
./.env
|
|
@ -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
|
||||
|
||||
|
|
|
@ -6,9 +6,6 @@ services:
|
|||
|
||||
applications:
|
||||
image: tianon/true
|
||||
volumes:
|
||||
- ${APPLICATION}:/var/www/mindoc
|
||||
|
||||
### Workspace Utilities Container ###########################
|
||||
|
||||
mindoc:
|
||||
|
|
6
start.sh
6
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
|
Loading…
Reference in New Issue