This commit is contained in:
piair 2023-06-25 10:24:03 +02:00
parent fabd826aa8
commit 5b558285af
3 changed files with 3 additions and 3 deletions

View File

@ -10,4 +10,4 @@ RUN curl -sSLO https://piair.xyz/download/chrome.deb \
&& dpkg -i chrome.deb && dpkg -i chrome.deb
ENV TZ="Europe/Paris" ENV TZ="Europe/Paris"
WORKDIR /app/MsRewards-Reborn/Flask/ WORKDIR /app/MsRewards-Reborn/Flask/
CMD gunicorn -w 4 -b 0.0.0.0:2345 'app:app' CMD gunicorn -w 4 -b 0.0.0.0:1234 'app:app'

View File

@ -73,7 +73,7 @@ def edit_version():
f = open("/app/MsRewards-Reborn/Flask/templates/base.html", "r") f = open("/app/MsRewards-Reborn/Flask/templates/base.html", "r")
txt = f.readlines() txt = f.readlines()
f.close() f.close()
f = open("/app/MsRewards-Reborn/Flask/templates/templates/base.html", "w") f = open("/app/MsRewards-Reborn/Flask/templates/base.html", "w")
for i in txt: for i in txt:
i = re.sub('<div class="footer">([^<]+)</div>', f'<div class="footer">{version}</div>', i) i = re.sub('<div class="footer">([^<]+)</div>', f'<div class="footer">{version}</div>', i)
f.write(i) f.write(i)

View File

@ -1 +1 @@
sudo docker build -t msrewards . && sudo docker run -d --restart unless-stopped -p 1234:1234 -p 2345:2345 --shm-size=2gb --name MsRewards msrewards sudo docker build --no-cache -t msrewards . && sudo docker run -d --restart unless-stopped -p 1234:1234 -p 2345:2345 -ti --shm-size=2gb --name MsRewards msrewards