Add config, runtime support for for serve.path
This commit is contained in:
parent
069289775e
commit
d32ca9fc6a
|
@ -83,9 +83,10 @@ class Serve(commands.Subcommand):
|
||||||
default='0.0.0.0')
|
default='0.0.0.0')
|
||||||
port = self.config.getint('wuttapos', 'serve.port',
|
port = self.config.getint('wuttapos', 'serve.port',
|
||||||
default=8332)
|
default=8332)
|
||||||
|
path = self.config.get('wuttapos', 'serve.path')
|
||||||
|
|
||||||
log.info(f"will serve WuttaPOS on http://{host}:{port}")
|
log.info(f"will serve WuttaPOS on http://{host}:{port}")
|
||||||
ft.app(target=main, view=None, host=host, port=port,
|
ft.app(name=path, target=main, view=None, host=host, port=port,
|
||||||
assets_dir=resource_path('wuttapos:assets'))
|
assets_dir=resource_path('wuttapos:assets'))
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue