Skip to content

Commit

Permalink
change configuration for deployment, should make it dynamic see issue
Browse files Browse the repository at this point in the history
  • Loading branch information
tgrall committed Nov 13, 2020
1 parent a54353c commit 13eb06c
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion sample-app/docker-compose.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ services:
context: ./front-end
dockerfile: Dockerfile
ports:
- "8084:8084"
- "80:8084"
environment:
- VUE_APP_SEARCH_API_JAVA=http://rest-java:8085
- VUE_APP_SEARCH_API_NODE=http://rest-node:8086
Expand Down
6 changes: 3 additions & 3 deletions sample-app/front-end/src/lib/SearchClient.js
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
import axios from "axios";

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


export const SearchClient = {
Expand Down

0 comments on commit 13eb06c

Please sign in to comment.