Skip to content

Commit 13eb06c

Browse files
committed
change configuration for deployment, should make it dynamic see issue #20
1 parent a54353c commit 13eb06c

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

sample-app/docker-compose.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ services:
6464
context: ./front-end
6565
dockerfile: Dockerfile
6666
ports:
67-
- "8084:8084"
67+
- "80:8084"
6868
environment:
6969
- VUE_APP_SEARCH_API_JAVA=http://rest-java:8085
7070
- VUE_APP_SEARCH_API_NODE=http://rest-node:8086

sample-app/front-end/src/lib/SearchClient.js

+3-3
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
import axios from "axios";
22

3-
const javaRestApiServer = (process.env.VUE_APP_SEARCH_API_JAVA || "http://localhost:8085");
4-
const nodeRestApiServer = (process.env.VUE_APP_SEARCH_API_NODE || "http://localhost:8086");
5-
const pythonRestApiServer = (process.env.VUE_APP_SEARCH_API_PYTHON || "http://localhost:8087");
3+
const javaRestApiServer = (process.env.VUE_APP_SEARCH_API_JAVA || "http://34.71.52.16:8085");
4+
const nodeRestApiServer = (process.env.VUE_APP_SEARCH_API_NODE || "http://34.71.52.16:8086");
5+
const pythonRestApiServer = (process.env.VUE_APP_SEARCH_API_PYTHON || "http://34.71.52.16:8087");
66

77

88
export const SearchClient = {

0 commit comments

Comments
 (0)