Mercurial > libervia-web
comparison twisted/plugins/libervia_server.py @ 1368:9624c2a89a92
server: new `--build-only` flag:
when this flag is set, the HTTP server is not launched, and Libervia quits immediately
after running building tasks.
author | Goffi <goffi@goffi.org> |
---|---|
date | Fri, 20 Nov 2020 18:04:05 +0100 |
parents | ce5cfe004d4e |
children | e3e303a30a74 |
comparison
equal
deleted
inserted
replaced
1367:ce5cfe004d4e | 1368:9624c2a89a92 |
---|---|
146 ["mr_handlers_json", None, None, None], | 146 ["mr_handlers_json", None, None, None], |
147 ] | 147 ] |
148 | 148 |
149 # Flags are in command line only | 149 # Flags are in command line only |
150 OPT_FLAGS = [ | 150 OPT_FLAGS = [ |
151 ['build-only', 'B', _("Only build website, don't run the server")], | |
151 ['dev-mode', 'D', _('Developer mode, automatically reload modified pages')], | 152 ['dev-mode', 'D', _('Developer mode, automatically reload modified pages')], |
152 ] | 153 ] |
153 | 154 |
154 | 155 |
155 | 156 |