feat: add script to run main application without Docker
This commit is contained in:
parent
d76914b4c5
commit
6f3567982d
17
scripts/run_with_no_docker.py
Normal file
17
scripts/run_with_no_docker.py
Normal 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()
|
Loading…
Reference in New Issue
Block a user