Commit 5edf1ffa authored by Gyeongho Park's avatar Gyeongho Park

[MOD] API 호스트 변경

parent c9a3cd3e
...@@ -3,5 +3,5 @@ FROM openjdk:11 ...@@ -3,5 +3,5 @@ FROM openjdk:11
WORKDIR /app WORKDIR /app
ADD build/libs/docs-0.0.1-SNAPSHOT.jar docs-back.jar ADD build/libs/docs-0.0.1-SNAPSHOT.jar docs-back.jar
EXPOSE 5005 EXPOSE 5000
ENTRYPOINT ["java","-Dspring.profiles.active=deploy","-Djava.net.preferIPv4Stack=true", "-jar","./docs-back.jar"] ENTRYPOINT ["java","-Dspring.profiles.active=deploy","-Djava.net.preferIPv4Stack=true", "-jar","./docs-back.jar"]
...@@ -8,7 +8,7 @@ spring: ...@@ -8,7 +8,7 @@ spring:
mongodb: mongodb:
host: mongodb host: mongodb
port: 27017 port: 27017
database: vridge database: vridge-docs
username: vridge-admin username: vridge-admin
password: vazil523320! password: vazil523320!
mvc: mvc:
......
...@@ -360,7 +360,7 @@ export default{ ...@@ -360,7 +360,7 @@ export default{
async getGuideIndex() { async getGuideIndex() {
this.loadingPageList = true this.loadingPageList = true
await this.$axios.get('http://localhost:5000/index') await this.$axios.get('http://docs.vridgeai.com/api/index')
.then(res => { .then(res => {
this.guideIndex = res.data.body this.guideIndex = res.data.body
}) })
......
...@@ -109,9 +109,8 @@ export default { ...@@ -109,9 +109,8 @@ export default {
}, },
axios:{ axios:{
host: "http://localhost", host: "http://docs.vridgeai.com",
port: "5000", prefix: "/api",
prefix: "/",
}, },
healthCheck: { healthCheck: {
......
...@@ -164,7 +164,7 @@ export default { ...@@ -164,7 +164,7 @@ export default {
methods:{ methods:{
async getGuide(){ async getGuide(){
this.loading = true this.loading = true
await this.$axios.get('http://localhost:5000/guide',{ await this.$axios.get('http://docs.vridgeai.com/api',{
params:{ params:{
guideId: this.$store.state.guideId guideId: this.$store.state.guideId
} }
......
...@@ -38,7 +38,7 @@ export default { ...@@ -38,7 +38,7 @@ export default {
getGuideIndex() { getGuideIndex() {
this.$store.state.guideId = null this.$store.state.guideId = null
this.$store.commit('setGuide', {guideId:null, flag:false}) this.$store.commit('setGuide', {guideId:null, flag:false})
this.$axios.get('http://localhost:5000/index') this.$axios.get('http://docs.vridgeai.com/api/index')
.then(res => { .then(res => {
this.guideIndex = res.data.body this.guideIndex = res.data.body
}) })
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment