fix: 🔨 make dev stage app independant
All checks were successful
repod / xml (push) Successful in 12s
repod / php (push) Successful in 1m11s
repod / nodejs (push) Successful in 1m8s
repod / release (push) Has been skipped

This commit is contained in:
Michel Roux 2024-11-10 15:49:35 +01:00
parent a3879021e4
commit b7e114f131
2 changed files with 6 additions and 6 deletions

View File

@ -159,11 +159,11 @@ appstore:
# Start a nextcloud server on Docker to kickstart developement # Start a nextcloud server on Docker to kickstart developement
.PHONY: dev .PHONY: dev
dev: build dev: build
docker stop repod || true docker stop $(app_name) || true
docker rm repod || true docker rm $(app_name) || true
docker build -t repod . docker build -t $(app_name) .
docker run -itd --rm --name repod -v $(CURDIR):/var/www/html/apps/repod -p 80:80 repod docker run -itd --rm --name $(app_name) -v $(CURDIR):/var/www/html/apps/$(app_name) -p 80:80 $(app_name)
npm run watch npm run watch || docker stop $(app_name)
# Generate translations # Generate translations
.PHONY: l10n .PHONY: l10n

View File

@ -2,7 +2,7 @@
"name": "repod", "name": "repod",
"license": "AGPL-3.0-or-later", "license": "AGPL-3.0-or-later",
"scripts": { "scripts": {
"build": "vue-tsc && vite build", "build": "vite build",
"dev": "vite --mode development build", "dev": "vite --mode development build",
"watch": "vite --mode development build --watch", "watch": "vite --mode development build --watch",
"lint": "vue-tsc && eslint src", "lint": "vue-tsc && eslint src",