This commit is contained in:
parent
fabd826aa8
commit
5b558285af
|
@ -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'
|
||||||
|
|
|
@ -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)
|
||||||
|
|
2
build.sh
2
build.sh
|
@ -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
|
||||||
|
|
Loading…
Reference in New Issue