Add basic docs for demo, installation, development

This commit is contained in:
Lance Edgar 2021-12-27 16:14:27 -06:00
parent cfc0e3a25d
commit 02de0077a2
12 changed files with 401 additions and 7 deletions

14
dev/nodb.conf Normal file
View file

@ -0,0 +1,14 @@
############################################################
#
# avoid db config (use files only)
#
############################################################
##############################
# rattail
##############################
[rattail.config]
usedb = false

View file

@ -162,6 +162,10 @@ def make_configs(c, envdir, appdir, info):
c.run('{}/bin/rattail make-config -T quiet -O {}'.format(
envdir, appdir))
# nodb.conf
if not os.path.exists(os.path.join(appdir, 'nodb.conf')):
shutil.copyfile('nodb.conf', os.path.join(appdir, 'nodb.conf'))
# web.conf
if not os.path.exists(os.path.join(appdir, 'web.conf')):
with open('web.conf') as f:
@ -177,11 +181,12 @@ def check_db(c, envdir, appdir):
Do basic sanity checks for Theo database
"""
if sys.platform == 'win32':
c.run('{} -c {} --no-versioning checkdb'.format(
os.path.join(envdir, 'Scripts', 'rattail'),
os.path.join(appdir, 'quiet.conf')))
c.run('{} -c {} -c {} --no-versioning checkdb'.format(
os.path.join(envdir, 'Scripts', 'rattail'),
os.path.join(appdir, 'quiet.conf'),
os.path.join(appdir, 'nodb.conf')))
else:
c.run('{}/bin/rattail -c {}/quiet.conf --no-versioning checkdb'.format(
c.run('{0}/bin/rattail -c {1}/quiet.conf -c {1}/nodb.conf --no-versioning checkdb'.format(
envdir, appdir))