mediacms-io / mediacms

MediaCMS is a modern, fully featured open source video and media CMS, written in Python/Django and React, featuring a REST API.
https://mediacms.io
GNU Affero General Public License v3.0
2.88k stars 534 forks source link

Support for reading environment variables #1114

Closed QYG2297248353 closed 3 days ago

QYG2297248353 commented 1 week ago

Support for reading environment variables FRONTEND_HOST, PORTAL_NAME, PORTAL_NAME, REDIS_LOCATION

POSTGRES_HOST, POSTGRES_PORT, POSTGRES_NAME, POSTGRES_USER, POSTGRES_PASSWORD

Description

Steps

Pre-deploy

Post-deploy

mgogoulos commented 5 days ago

Hi, thanks for the PR!

Can you add the import os at the beginning of the file? Without it, I don't think this is going to work...

QYG2297248353 commented 3 days ago

Hi, thanks for the PR!

Can you add the import os at the beginning of the file? Without it, I don't think this is going to work...

Okay, although it has passed the local test, your suggestion is a standardization suggestion, and I will modify the code.

mgogoulos commented 3 days ago

ok merged, thanks!!!