Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

env file are not reflected at runtime #2970

Open
roockiee opened this issue Oct 5, 2021 · 1 comment
Open

env file are not reflected at runtime #2970

roockiee opened this issue Oct 5, 2021 · 1 comment

Comments

@roockiee
Copy link

roockiee commented Oct 5, 2021

When the variables are set to the default in the env file, everything works as expected. But when I try to change e.g UI_BASE_URL=http://localhost:3000 to UI_BASE_URL=http://<vm_ip>:3000, backend, db, etc. and run rush run:origin
I can see ip at run is still localhost / 127.0.0.1 / 0.0.0.0. I could try to do it manually backend_url = os.env.get("BACKEND_URL", "http://ip:8000") but I don't think that's a good solution...

@maciejbrasewicz
Copy link

maciejbrasewicz commented Mar 16, 2022

I am not sure if I understand this problem well. If ui shows up at local but not at the address you provided, you can try:

  1. using docker fixed the issue of the ui not displaying
    rush build:container:canary
    nano origin.local.irec.yml

  2. Then you need to edit the origin.irec.yml file: version of docker-compose is 3 i changed it back to 2.1 Then you have to remove extra parameters like start_period . for port issue you can either add it to your .env file or hardcode it into the yml file
    BACKEND_PORT=3030 at the end of the .env file

  3. docker-compose -f origin.local.irec.yml up -d

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants