make does refresh deployment
This commit is contained in:
15
nextcloud_devenv/Makefile
Normal file
15
nextcloud_devenv/Makefile
Normal 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
|
||||
|
||||
@@ -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}
|
||||
|
||||
Reference in New Issue
Block a user