feat: add script to run main application without Docker

This commit is contained in:
patilk 2024-11-15 22:40:01 +01:00
parent d76914b4c5
commit 6f3567982d
Signed by: s500042
GPG Key ID: 1921AD722E7392EE

View File

@ -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()