mirror of
https://github.com/mindoc-org/mindoc.git
synced 2025-09-20 02:37:59 +08:00
1. 因编译遇到问题目录结构调整回来了,后期学习go知识来调整新目录
This commit is contained in:
4
.env
4
.env
@@ -2,10 +2,6 @@
|
|||||||
# General Setup
|
# General Setup
|
||||||
###########################################################
|
###########################################################
|
||||||
|
|
||||||
### Application Path ###################################################################################################
|
|
||||||
# Point to your code, will be available at `/var/www/mindoc`.
|
|
||||||
|
|
||||||
APPLICATION=../mindoc_volume/
|
|
||||||
|
|
||||||
### GLOBAL ENVIRONMENT #################################################################################################
|
### GLOBAL ENVIRONMENT #################################################################################################
|
||||||
|
|
||||||
|
3
.gitattributes
vendored
3
.gitattributes
vendored
@@ -1,2 +1,3 @@
|
|||||||
*.js linguist-language=Go
|
*.js linguist-language=Go
|
||||||
*.css 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++
|
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
|
RUN chmod +x start.sh
|
||||||
|
|
||||||
|
@@ -6,9 +6,6 @@ services:
|
|||||||
|
|
||||||
applications:
|
applications:
|
||||||
image: tianon/true
|
image: tianon/true
|
||||||
volumes:
|
|
||||||
- ${APPLICATION}:/var/www/mindoc
|
|
||||||
|
|
||||||
### Workspace Utilities Container ###########################
|
### Workspace Utilities Container ###########################
|
||||||
|
|
||||||
mindoc:
|
mindoc:
|
||||||
|
6
start.sh
6
start.sh
@@ -1,7 +1,7 @@
|
|||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
set -e
|
set -e
|
||||||
|
|
||||||
cd /var/www/mindoc
|
cd /go/src/github.com/lifei6671/mindoc/
|
||||||
|
|
||||||
if [ ! -f "conf/app.conf" ] ; then
|
if [ ! -f "conf/app.conf" ] ; then
|
||||||
cp conf/app.conf.example conf/app.conf
|
cp conf/app.conf.example conf/app.conf
|
||||||
@@ -45,6 +45,6 @@ fi
|
|||||||
|
|
||||||
sed -i 's/^runmode.*/runmode=prod/g' conf/app.conf
|
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
|
Reference in New Issue
Block a user