Sybren A. Stüvel
f951981a4c
Add `make` targets `devserver-webapp` and `devserver-website` to run respectively Yarn and Hugo. This also slightly changes how Hugo is invoked, from using the `hugo` CLI command to `go run github.com/gohugoio/hugo@v0.101.0`. This avoids the need to actually install Hugo locally, and also will use the correct version of Hugo if the locally-installed version happens to be different.
948 B
948 B
Static Web Files
Files in the static
directory will get embedded into the Flamenco Manager
executable, and served as static files via its web server.
make webapp-static
clears it out and builds the webapp there. It also ZIPs the Blender add-on, and places it in there as well.make clean-webapp-static
just does the clearing of the files.
static/emptyfile
exists just to make sure that go:embed
inside web_app.go
has something to work with, even before any static files have been built.
Running static flamenco.blender.org site locally
The Flamenco website runs off of Hugo.
To locally run the site, run make devserver-website
. Then visit https://localhost:1313/ in a webbrowser.
Alternatively, manually install Hugo. Then, from the web/project-website
directory, start the server with:
hugo server -D