From 72d10c5d73fb650cc465cca485e86ed68215ca65 Mon Sep 17 00:00:00 2001 From: Siwat Sirichai Date: Sat, 23 Sep 2023 01:40:35 +0700 Subject: [PATCH] unit config --- access_control_python_server/unit.json | 9 +++++---- access_control_python_server/unit_config.sh | 1 + 2 files changed, 6 insertions(+), 4 deletions(-) create mode 100644 access_control_python_server/unit_config.sh diff --git a/access_control_python_server/unit.json b/access_control_python_server/unit.json index 68ac8cc..875fd1f 100644 --- a/access_control_python_server/unit.json +++ b/access_control_python_server/unit.json @@ -16,10 +16,11 @@ "racist_application": { "type": "python", "processes": 10, - "working_directory": "/www/store/cart/", - "path": "/www/store/", - "home": ".virtualenv/", - "module": "cart.run" + "working_directory": "/root/stm32-fmt-code/access_control_python_server", + "home": "/root/stm32-fmt-code/access_control_python_server", + "path": "/root/stm32-fmt-code/access_control_python_server", + "module": "app", + "callable": "app" } } } \ No newline at end of file diff --git a/access_control_python_server/unit_config.sh b/access_control_python_server/unit_config.sh new file mode 100644 index 0000000..7ccc905 --- /dev/null +++ b/access_control_python_server/unit_config.sh @@ -0,0 +1 @@ +curl -X PUT --data-binary @./unit.json --unix-socket /var/run/control-unit.sock http://localhost/config \ No newline at end of file