From 6f3567982d61cb6e0eb9c296f020de46f9521969 Mon Sep 17 00:00:00 2001 From: paprykdev <58005447+paprykdev@users.noreply.github.com> Date: Fri, 15 Nov 2024 22:40:01 +0100 Subject: [PATCH] feat: add script to run main application without Docker --- scripts/run_with_no_docker.py | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100644 scripts/run_with_no_docker.py diff --git a/scripts/run_with_no_docker.py b/scripts/run_with_no_docker.py new file mode 100644 index 0000000..981a87c --- /dev/null +++ b/scripts/run_with_no_docker.py @@ -0,0 +1,17 @@ +import subprocess +import os +from run_command import run_command +from get_path import get_path + + +def run_main(): + path = get_path() + try: + result = run_command(f"python3 {path}/app/main.py") + print(result) + except subprocess.CalledProcessError as e: + print(f"Error occurred: {e.stderr}") + + +if __name__ == "__main__": + run_main()