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
|
# 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:
|
services:
|
||||||
website:
|
website:
|
||||||
image: ghcr.io/pagwin-fedora/website_frontend:latest-comments
|
image: ghcr.io/pagwin-fedora/website_frontend:latest
|
||||||
restart: unless-stopped
|
restart: unless-stopped
|
||||||
ports:
|
ports:
|
||||||
- "8080:80"
|
- "2020:80"
|
||||||
depends_on:
|
depends_on:
|
||||||
- comments_backend
|
- comments_backend
|
||||||
# need to specifically name it this unless you want to build the docker image in place
|
# 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()
|
buf = str()
|
||||||
with open(file_name+".template") as file:
|
with open(file_name+".template") as file:
|
||||||
buf = file.read()
|
buf = file.read()
|
||||||
|
if back == None or back == "":
|
||||||
if back == None:
|
|
||||||
buf = re.sub("###{---(.|\n)*###---}", "", buf)
|
buf = re.sub("###{---(.|\n)*###---}", "", buf)
|
||||||
else:
|
else:
|
||||||
# ${{\s*$var_name\s*}}
|
# ${{\s*$var_name\s*}}
|
||||||
|
|
Loading…
Reference in a new issue