Quantcast
Channel: Ember.JS - Latest topics
Viewing all articles
Browse latest Browse all 4870

[SOLVED] Ember data sending requests from my computer browser instead of its own machine?

$
0
0

Hello! I have the following scenario:

  1. I generated an ember build with environment=prod, and generated a docker Nginx image that serves this generated build. It uses backend-host as the API host (defined in environment.js)
  2. I deployed the docker image in a Kubernetes cluster. In the same pod I have the backend-hostcontainer working just fine.
  3. I exposed the Nginx using a load balancer on Kubernetes. You might access it through http://191.239.244.167:4200/
  4. EmberJS seems not able to access backend-host(you can check it by seeing the Networks tab)
  5. If I run the backend on my local computer and add a /etc/hosts entry to map backend-host to this local server from my computer, the app correctly communicates with my local backend. As if only the browser context is being used

So, my question is: there is any way to tell Ember to use its machine context instead of my browser? Thank you!

3 posts - 2 participants

Read full topic


Viewing all articles
Browse latest Browse all 4870

Trending Articles