mitodl / mit-open

BSD 3-Clause "New" or "Revised" License
0 stars 1 forks source link

Removing nginx serving of the frontend for local setups #1179

Closed rhysyngsun closed 3 days ago

rhysyngsun commented 1 week ago

What are the relevant tickets?

Closes https://github.com/mitodl/hq/issues/4602 Closes https://github.com/mitodl/hq/issues/4611

Description (What does it do?)

How can this be tested?

rhysyngsun commented 1 week ago

@gumaerc I addressed your feedback and also updated the readme to reflect the new config file locations.

gumaerc commented 1 week ago

@rhysyngsun I will test this again on Monday and take a closer look at the settings Matt mentioned above, but we should probably hold off merging until we know it picks up those settings properly.

rhysyngsun commented 4 days ago

Renamed my old .env and tried to use env/backend.local.env, env/shared.local/end, frontend.local.env but it couldn't seem to find shared.local.env at least where COMPOSE_PROFILES is, kept getting the error "no service selected"

COMPOSE_PROFILES still needs to be defined in a root .env file or as an exported environment variable in your shell. This is because the behavior of it being picked up in that file is a feature of docker compose. We just happened to be also using this file for our own .env. I'll update the readme to make that clear and remove COMPOSE_PROFILES from the shared.local.example.env file.

gumaerc commented 4 days ago

Renamed my old .env and tried to use env/backend.local.env, env/shared.local/end, frontend.local.env but it couldn't seem to find shared.local.env at least where COMPOSE_PROFILES is, kept getting the error "no service selected"

COMPOSE_PROFILES still needs to be defined in a root .env file or as an exported environment variable in your shell. This is because the behavior of it being picked up in that file is a feature of docker compose. We just happened to be also using this file for our own .env. I'll update the readme to make that clear and remove COMPOSE_PROFILES from the shared.local.example.env file.

I tested this again today and confirmed that COMPOSE_PROFILES needs to be set at the root level, but the other vars pull just fine from the more specific env files.