InsaLan / infra-insalan.fr

infrastructure configuration of the insalan website
3 stars 0 forks source link

Fixed typos in env variables #20

Closed TheBloodMan49 closed 11 months ago

TheBloodMan49 commented 1 year ago

Also removed a "readonly" tag on a volume because it's subdirectory can't be readonly

Lymkwi commented 1 year ago

So, if I understood right, are media and static supposed to be in the same directory, as subdirectories? Is that the volume and why it should be rw?

Dyskal commented 1 year ago

where is STATIC_MEDIA used ? isn't it MEDIA_ROOT ? (https://github.com/InsaLan/backend-insalan.fr/blob/3e431d1e1ef7ed307d750ae9b102dd66d8a7ea2a/insalan/settings.py#L178C2-L178C2)

TheBloodMan49 commented 1 year ago

True, I didn't see this typo

TheBloodMan49 commented 1 year ago

Unfortunately I can't make the prod environment work currently as we need to decide on how to bundle the frontend

TheBloodMan49 commented 1 year ago

So, if I understood right, are media and static supposed to be in the same directory, as subdirectories? Is that the volume and why it should be rw?

Yes, the backend is linked to /usr/share/nginx/html (it creates a static folder) and the frontend to /usr/share/nginx/html/frontend