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