5a886307fd
`make backend` embeds public/ via go:embed at compile time, so any frontend asset change requires: ddev build-gitea-frontend # vite into public/assets/ ddev build-gitea # re-embed public/ into the binary ddev restart # pick up new binary
12 lines
298 B
Bash
Executable File
12 lines
298 B
Bash
Executable File
#!/usr/bin/env bash
|
|
## Description: Build the gitea frontend assets (CSS/JS) inside the web container
|
|
## Usage: build-gitea-frontend
|
|
## Example: ddev build-gitea-frontend
|
|
|
|
set -eu
|
|
cd /var/www/html
|
|
echo "Installing frontend deps and building assets..."
|
|
make deps-frontend
|
|
make frontend
|
|
echo "Done."
|