From b102d47639f5bbb6a3f8788a3338f26a79cf3c32 Mon Sep 17 00:00:00 2001 From: ROOT Date: Wed, 19 Feb 2025 17:04:22 +0700 Subject: [PATCH] update --- README.md | 0 app.py | 4 ++-- data/services.json | 6 ++++++ output.log | 44 ++++++++++++++++++++------------------------ servermanagement.pid | 2 +- static/script.js | 0 static/style.css | 0 templates/index.html | 1 + templates/login.html | 0 9 files changed, 30 insertions(+), 27 deletions(-) mode change 100644 => 100755 README.md mode change 100644 => 100755 app.py mode change 100644 => 100755 data/services.json mode change 100644 => 100755 output.log mode change 100644 => 100755 static/script.js mode change 100644 => 100755 static/style.css mode change 100644 => 100755 templates/index.html mode change 100644 => 100755 templates/login.html diff --git a/README.md b/README.md old mode 100644 new mode 100755 diff --git a/app.py b/app.py old mode 100644 new mode 100755 index 6228b30..b48d89e --- a/app.py +++ b/app.py @@ -64,14 +64,14 @@ def run_shell_command(command_str): time.sleep(0.1) for line in iter(process.stderr.readline, ''): - yield f"data: [ERROR] {line.strip()}\n\n" + yield f"data: [] {line.strip()}\n\n" time.sleep(0.1) process.wait() if process.returncode == 0: yield f"data: SUCCESS\n\n" else: - yield f"data: ERROR\n\n" + yield f"data: []\n\n" def generate_output(command_list): """Chạy command từ JSON, sau đó restart Nginx""" diff --git a/data/services.json b/data/services.json old mode 100644 new mode 100755 index 156ec0e..6fb2af2 --- a/data/services.json +++ b/data/services.json @@ -11,6 +11,12 @@ "description": "Sunday English Exercise", "command": ["cd", "/projects/exercise-se", "&&", "docker", "compose", "down", "&&", "docker", "compose", "up", "-d"] }, + { + "name": "Oauth", + "url": "https://oauth2.sundayenglish.com", + "description": "Oauth", + "command": ["cd", "/projects/gk_oauth", "&&", "docker", "compose", "down", "&&", "docker", "compose", "up", "-d"] + }, { "name": "Julius", "url": null, diff --git a/output.log b/output.log old mode 100644 new mode 100755 index 78f1132..75fed53 --- a/output.log +++ b/output.log @@ -4,30 +4,26 @@ nohup: ignoring input WARNING: This is a development server. Do not use it in a production deployment. Use a production WSGI server instead. * Running on all addresses (0.0.0.0) * Running on http://127.0.0.1:5000 - * Running on http://45.119.213.162:5000 + * Running on http://45.119.213.171:5000 Press CTRL+C to quit * Restarting with stat * Debugger is active! - * Debugger PIN: 104-926-898 -14.231.189.200 - - [19/Feb/2025 16:01:48] "GET / HTTP/1.1" 200 - -14.231.189.200 - - [19/Feb/2025 16:01:48] "GET /static/style.css HTTP/1.1" 304 - -14.231.189.200 - - [19/Feb/2025 16:01:49] "GET /static/script.js HTTP/1.1" 304 - -14.231.189.200 - - [19/Feb/2025 16:01:55] "GET /run-command?command[]=cd&command[]=/projects/julius&command[]=%26%26&command[]=docker&command[]=compose&command[]=down&command[]=%26%26&command[]=docker&command[]=compose&command[]=up&command[]=-d HTTP/1.1" 200 - -14.231.189.200 - - [19/Feb/2025 16:06:43] "GET / HTTP/1.1" 200 - -14.231.189.200 - - [19/Feb/2025 16:06:43] "GET /static/style.css HTTP/1.1" 304 - -14.231.189.200 - - [19/Feb/2025 16:06:43] "GET /static/script.js HTTP/1.1" 304 - -14.231.189.200 - - [19/Feb/2025 16:06:43] "GET /favicon.ico HTTP/1.1" 404 - -14.231.189.200 - - [19/Feb/2025 16:06:47] "GET /run-command?command[]=cd&command[]=/projects/julius&command[]=%26%26&command[]=docker&command[]=compose&command[]=down&command[]=%26%26&command[]=docker&command[]=compose&command[]=up&command[]=-d HTTP/1.1" 200 - -14.231.189.200 - - [19/Feb/2025 16:11:08] "GET / HTTP/1.1" 200 - -14.231.189.200 - - [19/Feb/2025 16:11:08] "GET /static/style.css HTTP/1.1" 304 - -14.231.189.200 - - [19/Feb/2025 16:11:08] "GET /static/script.js HTTP/1.1" 304 - -14.231.189.200 - - [19/Feb/2025 16:11:12] "GET /run-command?command[]=cd&command[]=/projects/exercise-se&command[]=%26%26&command[]=docker&command[]=compose&command[]=down&command[]=%26%26&command[]=docker&command[]=compose&command[]=up&command[]=-d HTTP/1.1" 200 - -14.231.189.200 - - [19/Feb/2025 16:12:16] "GET /run-command?command[]=cd&command[]=/projects/exercise-se&command[]=%26%26&command[]=docker&command[]=compose&command[]=down&command[]=%26%26&command[]=docker&command[]=compose&command[]=up&command[]=-d HTTP/1.1" 200 - -14.231.189.200 - - [19/Feb/2025 16:13:11] "GET /run-command?command[]=cd&command[]=/projects/exercise-se&command[]=%26%26&command[]=docker&command[]=compose&command[]=down&command[]=%26%26&command[]=docker&command[]=compose&command[]=up&command[]=-d HTTP/1.1" 200 - -14.231.189.200 - - [19/Feb/2025 16:13:16] "GET / HTTP/1.1" 200 - -14.231.189.200 - - [19/Feb/2025 16:13:16] "GET /static/style.css HTTP/1.1" 304 - -14.231.189.200 - - [19/Feb/2025 16:13:16] "GET /static/script.js HTTP/1.1" 304 - -14.231.189.200 - - [19/Feb/2025 16:15:55] "GET / HTTP/1.1" 200 - -14.231.189.200 - - [19/Feb/2025 16:15:55] "GET /static/style.css HTTP/1.1" 304 - -14.231.189.200 - - [19/Feb/2025 16:15:55] "GET /static/script.js HTTP/1.1" 304 - -14.231.189.200 - - [19/Feb/2025 16:16:02] "GET /run-command?command[]=cd&command[]=/projects/service-se&command[]=%26%26&command[]=docker&command[]=compose&command[]=down&command[]=%26%26&command[]=docker&command[]=compose&command[]=up&command[]=-d HTTP/1.1" 200 - + * Debugger PIN: 112-654-638 +14.231.189.200 - - [19/Feb/2025 17:03:40] "GET / HTTP/1.1" 200 - +14.231.189.200 - - [19/Feb/2025 17:03:40] "GET /static/style.css HTTP/1.1" 304 - +14.231.189.200 - - [19/Feb/2025 17:03:41] "GET /static/script.js HTTP/1.1" 304 - +14.231.189.200 - - [19/Feb/2025 17:03:41] "GET / HTTP/1.1" 200 - +14.231.189.200 - - [19/Feb/2025 17:03:41] "GET /static/style.css HTTP/1.1" 304 - +14.231.189.200 - - [19/Feb/2025 17:03:41] "GET /static/script.js HTTP/1.1" 304 - +14.231.189.200 - - [19/Feb/2025 17:03:42] "GET / HTTP/1.1" 200 - +14.231.189.200 - - [19/Feb/2025 17:03:42] "GET /static/style.css HTTP/1.1" 304 - +14.231.189.200 - - [19/Feb/2025 17:03:42] "GET / HTTP/1.1" 200 - +14.231.189.200 - - [19/Feb/2025 17:03:42] "GET /static/script.js HTTP/1.1" 304 - +14.231.189.200 - - [19/Feb/2025 17:03:42] "GET /static/style.css HTTP/1.1" 304 - +14.231.189.200 - - [19/Feb/2025 17:03:42] "GET /static/script.js HTTP/1.1" 200 - +14.231.189.200 - - [19/Feb/2025 17:03:42] "GET / HTTP/1.1" 200 - +14.231.189.200 - - [19/Feb/2025 17:03:42] "GET /static/style.css HTTP/1.1" 304 - +14.231.189.200 - - [19/Feb/2025 17:03:42] "GET /static/script.js HTTP/1.1" 304 - +14.231.189.200 - - [19/Feb/2025 17:03:42] "GET / HTTP/1.1" 200 - +14.231.189.200 - - [19/Feb/2025 17:03:42] "GET /static/style.css HTTP/1.1" 304 - +14.231.189.200 - - [19/Feb/2025 17:03:42] "GET /static/script.js HTTP/1.1" 304 - diff --git a/servermanagement.pid b/servermanagement.pid index 3b53387..c6961be 100644 --- a/servermanagement.pid +++ b/servermanagement.pid @@ -1 +1 @@ -1364291 +31232 diff --git a/static/script.js b/static/script.js old mode 100644 new mode 100755 diff --git a/static/style.css b/static/style.css old mode 100644 new mode 100755 diff --git a/templates/index.html b/templates/index.html old mode 100644 new mode 100755 index 6f13c66..92422ad --- a/templates/index.html +++ b/templates/index.html @@ -3,6 +3,7 @@ + Service List diff --git a/templates/login.html b/templates/login.html old mode 100644 new mode 100755