Skip to content

Commit

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

VUE_APP_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(process.env.API_URL + '/api/get-runners')
axios.get(process.env.VUE_APP_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(process.env.API_URL + '/api/get-job/'+jobid)
axios.get(process.env.VUE_APP_API_URL + '/api/get-job/'+jobid)
.then(response => {
const index = this.jobs.findIndex(job => job.runnerId === runnerid);
Expand Down

0 comments on commit 5b72456

Please sign in to comment.