From 524e412b40a876afb00a01786f0390c31383fb40 Mon Sep 17 00:00:00 2001 From: piair Date: Sat, 1 Jul 2023 14:06:48 +0200 Subject: [PATCH] tests --- Flask/app.py | 4 ++-- Flask/templates/config.html | 2 +- build.sh | 2 +- dev_build.sh | 1 + 4 files changed, 5 insertions(+), 4 deletions(-) create mode 100644 dev_build.sh diff --git a/Flask/app.py b/Flask/app.py index 9c0e393..99d050e 100644 --- a/Flask/app.py +++ b/Flask/app.py @@ -40,7 +40,7 @@ scheduler.add_job( # on relance le job year="*", month="*", day="*", hour="0", minute="0", second="0" ), # --- name="Daily refresh", # --- - id=99 # --- + id="99" # --- ) def start_ms(i): @@ -407,4 +407,4 @@ def maxi(dict): if __name__ == '__main__': update_jobs() edit_version() - app.run(host='0.0.0.0', port=3456, debug=True) \ No newline at end of file + app.run(host='0.0.0.0', port=1234, debug=True) diff --git a/Flask/templates/config.html b/Flask/templates/config.html index 73e3578..f23f389 100644 --- a/Flask/templates/config.html +++ b/Flask/templates/config.html @@ -122,7 +122,7 @@ - + diff --git a/build.sh b/build.sh index 57f936e..22dec17 100755 --- a/build.sh +++ b/build.sh @@ -1 +1 @@ -sudo docker build --no-cache -t msrewards . && sudo docker run -d --restart unless-stopped -p 3456:3456 -ti --shm-size=2gb --name Dev 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 Dev msrewards diff --git a/dev_build.sh b/dev_build.sh new file mode 100644 index 0000000..c54af8b --- /dev/null +++ b/dev_build.sh @@ -0,0 +1 @@ +sudo docker build --no-cache -t msrewards-dev . && sudo docker run -p 3456:3456 -ti --shm-size=2gb --name Dev msrewards-dev