That was the intent of the uncommitted edit, and it is a better location than a
second directory: the app inherits the place the menus were already served from
and only ever reads and writes its own data/ and site.env inside it.
app_root is written as /var/lib/{{ host }}, quoted, because the unquoted form is
what failed to parse. Every documented path follows, and the deployment readme
now says that emptying the old menu files means deleting those files rather than
the directory, which holds the live content.
22 lines
966 B
YAML
22 lines
966 B
YAML
---
|
|
# Hops n Grains. Its name, tagline, icon, categories and menus live on the
|
|
# server under app_root and are edited in the admin; config/hopsngrains.site.json
|
|
# only seeds the theme. This file says where the Site runs and what it answers.
|
|
#
|
|
# Every value that interpolates a template is quoted: YAML reads a leading `{`
|
|
# as a flow mapping, which is the parse error Ansible reports as "missing quotes
|
|
# around a template block".
|
|
title: hopsngrains.com
|
|
host: 'menu.{{ title }}'
|
|
|
|
docker_container: 'menu-app.{{ title }}'
|
|
docker_network: '{{ docker_container }}_net'
|
|
|
|
# Everything the app writes — data/ and the untracked site.env.
|
|
#
|
|
# Deliberately the directory the old static menus were served from, so the app
|
|
# inherits the location rather than a second one. The app only ever reads and
|
|
# writes its own data/ inside it; the old menu files can be emptied out when
|
|
# they are no longer wanted, and the directory itself must stay.
|
|
app_root: '/var/lib/{{ host }}'
|