mirror of
https://github.com/Pagwin-Fedora/website.git
synced 2025-07-17 22:45:42 +00:00
oops
This commit is contained in:
parent
b39457e4c5
commit
2441610b51
2 changed files with 3 additions and 4 deletions
|
@ -2,10 +2,10 @@ version: "3"
|
|||
# copied from the docker-compose I wrote specifically for the comments backend which was made referencing the invidious docker compose file which was very helpful https://github.com/iv-org/invidious/blob/master/docker-compose.yml
|
||||
services:
|
||||
website:
|
||||
image: ghcr.io/pagwin-fedora/website_frontend:latest-comments
|
||||
image: ghcr.io/pagwin-fedora/website_frontend:latest
|
||||
restart: unless-stopped
|
||||
ports:
|
||||
- "8080:80"
|
||||
- "2020:80"
|
||||
depends_on:
|
||||
- comments_backend
|
||||
# need to specifically name it this unless you want to build the docker image in place
|
||||
|
|
|
@ -9,8 +9,7 @@ back = os.environ.get(var_name)
|
|||
buf = str()
|
||||
with open(file_name+".template") as file:
|
||||
buf = file.read()
|
||||
|
||||
if back == None:
|
||||
if back == None or back == "":
|
||||
buf = re.sub("###{---(.|\n)*###---}", "", buf)
|
||||
else:
|
||||
# ${{\s*$var_name\s*}}
|
||||
|
|
Loading…
Reference in a new issue