mirror of https://gitee.com/answerdev/answer.git
update config
This commit is contained in:
parent
8d7657454a
commit
309b9f9906
|
@ -22,7 +22,7 @@ COPY --from=node-builder /tmp/build ${BUILD_DIR}/ui/build
|
||||||
RUN make clean build && \
|
RUN make clean build && \
|
||||||
cp answer /usr/bin/answer && \
|
cp answer /usr/bin/answer && \
|
||||||
mkdir -p /tmp/cache && chmod 777 /tmp/cache && \
|
mkdir -p /tmp/cache && chmod 777 /tmp/cache && \
|
||||||
mkdir /data && chmod 777 /data && cp configs/config.yaml /data/config.yaml && \
|
mkdir -p /data/conf && chmod 777 /data/conf && cp configs/config.yaml /data/conf/config.yaml && \
|
||||||
mkdir -p /data/upfiles && chmod 777 /data/upfiles && \
|
mkdir -p /data/upfiles && chmod 777 /data/upfiles && \
|
||||||
mkdir -p /data/i18n && chmod 777 /data/i18n && cp -r i18n/*.yaml /data/i18n
|
mkdir -p /data/i18n && chmod 777 /data/i18n && cp -r i18n/*.yaml /data/i18n
|
||||||
|
|
||||||
|
|
|
@ -16,4 +16,4 @@ swaggerui:
|
||||||
service_config:
|
service_config:
|
||||||
secret_key: "answer"
|
secret_key: "answer"
|
||||||
web_host: "http://127.0.0.1"
|
web_host: "http://127.0.0.1"
|
||||||
upload_path: "./upfiles"
|
upload_path: "/data/upfiles"
|
||||||
|
|
|
@ -2,4 +2,4 @@
|
||||||
if [ ! -f "/data/config.yaml" ]; then
|
if [ ! -f "/data/config.yaml" ]; then
|
||||||
/usr/bin/answer init
|
/usr/bin/answer init
|
||||||
fi
|
fi
|
||||||
/usr/bin/answer run -c /data/config.yaml
|
/usr/bin/answer run -c /data/conf/config.yaml
|
||||||
|
|
Loading…
Reference in New Issue