Skip to content

Commit 2b45dc7

Browse files
Add a quicker way for development with a local Nextcloud server and the app code changeable inside this server (#234)
1 parent e618da6 commit 2b45dc7

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

Makefile

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -112,6 +112,11 @@ distclean: clean
112112
rm -rf js/node_modules
113113
rm -f composer.lock package-lock.json
114114

115+
# Builds the app in a Docker container with PHP 8.3 and Nextcloud 31.0.7 and serves it on localhost:8080
116+
.PHONY: local
117+
local: build
118+
docker run --rm -d -p 8080:80 --name nextcloud-local -e SERVER_BRANCH="31.0.7" -v .:/var/www/html/apps-extra/gdatavaas ghcr.io/juliusknorr/nextcloud-dev-php83:latest
119+
115120
# Builds the source package for the app store, ignores php tests, js tests
116121
# and build related folders that are unnecessary for an appstore release
117122
.PHONY: appstore

0 commit comments

Comments
 (0)