diff --git a/docker-compose-with-rds.yml b/docker-compose-with-rds.yml index 15f2455..03e8e16 100644 --- a/docker-compose-with-rds.yml +++ b/docker-compose-with-rds.yml @@ -43,7 +43,7 @@ services: # - npm_config_unsafe_perm=true # restart: "no" jvue-artalk: - image: terwer/jvue-artalk:2.1 + image: jvue/artalk:2.8.3 container_name: jvue-artalk build: context: ./ diff --git a/jvue-artalk/Dockerfile b/jvue-artalk/Dockerfile index 9bea73b..c9ea9e2 100644 --- a/jvue-artalk/Dockerfile +++ b/jvue-artalk/Dockerfile @@ -1,4 +1,4 @@ -FROM artalk/artalk-go:2.1 +FROM artalk/artalk-go:2.8.3 #镜像创建者的信息 LABEL maintainer="terwer" diff --git a/jvue-front/nuxt.config.js b/jvue-front/nuxt.config.js index ac80b5c..e85c9d0 100644 --- a/jvue-front/nuxt.config.js +++ b/jvue-front/nuxt.config.js @@ -1,6 +1,9 @@ const pkg = require("./package"); -const development = process.env.NODE_ENV !== "production"; +// 后端接口地址 +const JVUE_SERVER_URL = + process.env.JVUE_SERVER_URL ?? "http://localhost:8008/api"; +console.log("JVUE_SERVER_URL =>", JVUE_SERVER_URL); module.exports = { debug: true, @@ -62,8 +65,7 @@ module.exports = { */ axios: { // See https://github.com/nuxt-community/axios-module#options - baseURL: "http://localhost:8008/api" - // baseURL: development ? "http://localhost:8008/api" : "http://localhost/api" + baseURL: JVUE_SERVER_URL }, /*