Build ui for prod

This commit is contained in:
2025-04-14 22:55:32 -04:00
parent c4ac1ff14d
commit 9ad87fbac5
15 changed files with 367 additions and 18456 deletions

View File

@@ -44,7 +44,7 @@ build-ui: ## Build the UI app
@cd ui && npm install && npm run build
clean-ui: ## Remove UI build files
@cd ui && rm -rf node_modules dist
@cd ui && rm -rf node_modules dist stats.html
run-ui: ## Run the UI app
@cd ui && npm install && npm run dev
@@ -86,7 +86,7 @@ docker-down: ## Stop the docker container
@docker compose --profile frontend --profile api --profile backend down
docker-up: ## Start the docker container
@docker compose --profile backend --profile api --profile frontend up -d
@docker compose --profile backend --profile api up -d
docker-refresh: docker-clean up-backend ## Refresh the database
@@ -104,7 +104,7 @@ build: ## Build a specific docker image (`make build f=httpd`)
--build-arg BUILD_DATE=$$(date -u +'%Y-%m-%dT%H:%M:%SZ') \
--build-arg BUILD_VERSION=${version} \
--build-arg VCS_REF=$$(git rev-parse HEAD) \
${folder}
.
push: version=$(if $(v),$(v),latest)
push: folder=$(if $(f),$(f),nginx)
@@ -120,11 +120,8 @@ push: ## Build and push a specific docker image (`make push f=httpd`)
--build-arg BUILD_DATE=$$(date -u +'%Y-%m-%dT%H:%M:%SZ') \
--build-arg BUILD_VERSION=${version} \
--build-arg VCS_REF=$$(git rev-parse HEAD) \
${folder}
.
cert: domain=$(if $(d),$(d),${NGINX_HOST})
cert: ## Generate a cert for the given domain
./scripts/generate_cert.sh ${domain}
tag: ## Tag the commits based on versions
@./scripts/tag.sh