99 @echo " "
1010 @echo " build-push build image and upload to ghcr.io"
1111 @echo " "
12- @echo " deploy deploy example to registered 'docker_dev'"
12+ @echo " deploy28 deploy example to registered 'docker_dev' for Nextcloud 28"
13+ @echo " deploy27 deploy example to registered 'docker_dev' for Nextcloud 27"
1314 @echo " "
1415 @echo " run28 install UpScaler for Nextcloud 28"
1516 @echo " run27 install UpScaler for Nextcloud 27"
1617 @echo " "
1718 @echo " For development of this example use PyCharm run configurations. Development is always set for last Nextcloud."
1819 @echo " First run 'upscaler_example' and then 'make manual_register', after that you can use/debug/develop it and easy test."
1920 @echo " "
20- @echo " manual_register perform registration of running 'upscaler_example' into 'manual_install' deploy daemon."
21+ @echo " manual_register28 perform registration of running 'upscaler_example' into 'manual_install' deploy daemon."
22+ @echo " manual_register27 perform registration of running 'upscaler_example' into 'manual_install' deploy daemon."
2123
2224.PHONY : build-push
2325build-push :
2426 docker login ghcr.io
2527 docker buildx build --push --platform linux/arm64/v8,linux/amd64 --tag ghcr.io/cloud-py-api/upscaler_example:1.0.0 --tag ghcr.io/cloud-py-api/upscaler_example:latest .
2628
27- .PHONY : deploy
28- deploy :
29+ .PHONY : deploy28
30+ deploy28 :
2931 docker exec master-nextcloud-1 sudo -u www-data php occ app_api:app:unregister upscaler_example --silent || true
3032 docker exec master-nextcloud-1 sudo -u www-data php occ app_api:app:deploy upscaler_example docker_dev \
3133 --info-xml https://raw.githubusercontent.com/cloud-py-api/upscaler_example/main/appinfo/info.xml
@@ -37,16 +39,29 @@ run28:
3739 -e --force-scopes \
3840 --info-xml https://raw.githubusercontent.com/cloud-py-api/upscaler_example/main/appinfo/info.xml
3941
42+ .PHONY : deploy27
43+ deploy27 :
44+ docker exec master-stable27-1 sudo -u www-data php occ app_api:app:unregister upscaler_example --silent || true
45+ docker exec master-stable27-1 sudo -u www-data php occ app_api:app:deploy upscaler_example docker_dev \
46+ --info-xml https://raw.githubusercontent.com/cloud-py-api/upscaler_example/main/appinfo/info.xml
47+
4048.PHONY : run27
4149run27 :
4250 docker exec master-stable27-1 sudo -u www-data php occ app_api:app:unregister upscaler_example --silent || true
4351 docker exec master-stable27-1 sudo -u www-data php occ app_api:app:register upscaler_example docker_dev \
4452 -e --force-scopes \
4553 --info-xml https://raw.githubusercontent.com/cloud-py-api/upscaler_example/main/appinfo/info.xml
4654
47- .PHONY : manual_register
48- manual_register :
55+ .PHONY : manual_register28
56+ manual_register28 :
4957 docker exec master-nextcloud-1 sudo -u www-data php occ app_api:app:unregister upscaler_example --silent || true
5058 docker exec master-nextcloud-1 sudo -u www-data php occ app_api:app:register upscaler_example manual_install --json-info \
5159 "{\"appid\" :\"upscaler_example\",\"name\":\"upscaler_example\",\"daemon_config_name\":\"manual_install\",\"version\":\"1.0.0\",\"secret\":\"12345\",\"host\":\"host.docker.internal\",\"port\":10050,\"scopes\":{\"required\":[\"FILES\", \"NOTIFICATIONS\"],\"optional\":[]},\"protocol\":\"http\",\"system_app\":0}" \
5260 -e --force-scopes
61+
62+ .PHONY : manual_register27
63+ manual_register27 :
64+ docker exec master-stable27-1 sudo -u www-data php occ app_api:app:unregister upscaler_example --silent || true
65+ docker exec master-stable27-1 sudo -u www-data php occ app_api:app:register upscaler_example manual_install --json-info \
66+ "{\"appid\" :\"upscaler_example\",\"name\":\"upscaler_example\",\"daemon_config_name\":\"manual_install\",\"version\":\"1.0.0\",\"secret\":\"12345\",\"host\":\"host.docker.internal\",\"port\":10050,\"scopes\":{\"required\":[\"FILES\", \"NOTIFICATIONS\"],\"optional\":[]},\"protocol\":\"http\",\"system_app\":0}" \
67+ -e --force-scopes
0 commit comments