From db5405a09aeb0e766dce14ab4998137ea088ec6d Mon Sep 17 00:00:00 2001 From: Alexander Piskun <13381981+bigcat88@users.noreply.github.com> Date: Sat, 25 Nov 2023 11:43:53 +0300 Subject: [PATCH] manual_install: added Note that deploy/start should be handled by dev (#126) --- docs/tech_details/Deployment.rst | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/docs/tech_details/Deployment.rst b/docs/tech_details/Deployment.rst index 4f2154b3..f946d02b 100644 --- a/docs/tech_details/Deployment.rst +++ b/docs/tech_details/Deployment.rst @@ -150,6 +150,16 @@ There is a ``manual-install`` DeployConfig type, which can be used in case of de For ExApp registration with it you need to provide JSON app info with structure described before using **app_api:app:register** ``--json-info`` option. +For all examples and applications we release we usually add manual_install command in it's makefile for easier development. + +.. code-block:: + + php occ app_api:app:register nc_py_api manual_install --json-info \ + "{\"appid\":\"nc_py_api\",\"name\":\"nc_py_api\",\"daemon_config_name\":\"manual_install\",\"version\":\"1.0.0\",\"secret\":\"12345\",\"host\":\"localhost\",\"port\":$APP_PORT,\"scopes\":{\"required\":[\"SYSTEM\", \"FILES\", \"FILES_SHARING\"],\"optional\":[\"USER_INFO\", \"USER_STATUS\", \"NOTIFICATIONS\", \"WEATHER_STATUS\", \"TALK\"]},\"protocol\":\"http\",\"system_app\":1}" \ + --force-scopes + +.. note:: **Deployment/Startup of App should be done by developer when manual_install DeployConfig type is used.** + Deploy env variables ********************