Skip to content

Commit

Permalink
add env vars
Browse files Browse the repository at this point in the history
  • Loading branch information
elasticroentgen committed Jul 27, 2024
1 parent 9332550 commit 2d9cd33
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 2 deletions.
1 change: 1 addition & 0 deletions .env.development
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
API_URL=http://localhost:808
2 changes: 2 additions & 0 deletions .env.production
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
API_URL=https://github-autoscaler.ethquokkaops.io

4 changes: 2 additions & 2 deletions src/components/Runners.vue
Original file line number Diff line number Diff line change
Expand Up @@ -155,7 +155,7 @@ export default {
},
fetchRunners() {
axios.get('http://localhost:8080/api/get-runners')
axios.get(process.env.API_URL + '/api/get-runners')
.then(response => {
this.runners = response.data;
for(var od of this.visibleRunners) {
Expand All @@ -170,7 +170,7 @@ export default {
},
fetchJob(jobid,runnerid) {
if(!jobid) { return }
axios.get('http://localhost:8080/api/get-job/'+jobid)
axios.get(process.env.API_URL + '/api/get-job/'+jobid)
.then(response => {
const index = this.jobs.findIndex(job => job.runnerId === runnerid);
Expand Down

0 comments on commit 2d9cd33

Please sign in to comment.