make does refresh deployment

This commit is contained in:
2025-08-02 22:55:24 +02:00
parent f9e38ea4a4
commit 38af3fc7dd
2 changed files with 21 additions and 1 deletions

15
nextcloud_devenv/Makefile Normal file
View File

@@ -0,0 +1,15 @@
.PHONY: all build_deploy build deploy
all: build_deploy
build_deploy: build
./deploy_poll.sh
build:
cd polls; make
deploy:
./deploy_poll.sh

View File

@@ -5,5 +5,10 @@
# podman exec -it nextcloud_local rsync --chown www-data:www-data -av /root/polls/ /var/www/html/custom_apps/polls --exclude .git --exclude node_modules
podman exec -it nextcloud_local tar -xzf /root/polls/build/artifacts/appstore/polls.tar.gz -C /var/www/html/custom_apps/
app=polls
app_polls=$app/build/artifacts/polls.tar.gz
apps_dir=/var/www/html/custom_apps/
echo "Assuming $app is mounted under /root/$app of container"
podman exec -it nextcloud_local tar -xzf /root/$app_polls -C ${apps_dir}
podman exec -it nextcloud_local chown -R www-data:www-data ${apps_dir}