Configuration for Swarm deployment of membcons.dev, the connector protocol's Go import path, and redirects from the project's other domains.
- HTML 93.4%
- Makefile 6.6%
| Filename | Latest commit message | Latest commit date |
|---|---|---|
|
|
||
| .woodpecker | ||
| brand/marks | ||
| content | ||
| static | ||
| themes | ||
| .env.sample | ||
| .gitignore | ||
| .gitmodules | ||
| AGENTS.md | ||
| compose.yaml | ||
| hugo.yaml | ||
| Makefile | ||
| README | ||
| site.conf | ||
# membcons site Serves https://membcons.dev, the Go import path of the member console's connector protocol, and redirects the project's other domains to it. ## Deploying the app with Docker Swarm Copy `.env.sample` to `.env`, then set the environment variables during the shell session. ``` set -a && source .env && set +a ``` Deploy using the `-c` flag to specify one or multiple compose files. ``` docker stack deploy membcons-site --detach=true -c compose.yaml ``` `site.conf` is a Docker config, which cannot change in place. After editing it, raise the `_v1` suffix in `compose.yaml`. ## Previewing the website The website is a Hugo site. Its theme, `wikidarity`, is shared with wiki.cafe and lives in its own repository, [wiki-cafe/wikidarity](https://git.wiki.cafe/wiki-cafe/wikidarity), pinned here as a submodule in `themes/wikidarity`. Clone with `--recurse-submodules`, or run `git submodule update --init` after cloning. The preview reads the theme from a checkout of that repository beside this one, `../wikidarity` by default, so theme changes show before they are committed. ``` make preview # http://localhost:1314 make preview THEME= # the pinned theme make preview BASE_URL=http://192.168.4.138/ # open it from another device ```