mirror of
https://github.com/ArchiveBox/ArchiveBox.git
synced 2025-05-13 06:34:25 -04:00
add clickable host link back to archivebox server output
This commit is contained in:
parent
2d99f184d3
commit
f8c6ff88ad
1 changed files with 7 additions and 10 deletions
|
@ -1336,22 +1336,16 @@ def server(runserver_args: Optional[List[str]]=None,
|
||||||
print(' To create an admin user, run:')
|
print(' To create an admin user, run:')
|
||||||
print(' archivebox manage createsuperuser')
|
print(' archivebox manage createsuperuser')
|
||||||
print()
|
print()
|
||||||
|
|
||||||
# fallback to serving staticfiles insecurely with django when DEBUG=False (not compatible with daphne)
|
|
||||||
# if not config.DEBUG:
|
|
||||||
# runserver_args.append('--insecure') # TODO: serve statics w/ nginx instead
|
|
||||||
|
|
||||||
# toggle autoreloading when archivebox code changes (it's on by default)
|
# toggle autoreloading when archivebox code changes
|
||||||
if not reload:
|
|
||||||
runserver_args.append('--noreload')
|
|
||||||
|
|
||||||
config.SHOW_PROGRESS = False
|
config.SHOW_PROGRESS = False
|
||||||
config.DEBUG = config.DEBUG or debug
|
config.DEBUG = config.DEBUG or debug
|
||||||
|
|
||||||
if reload or debug:
|
if debug:
|
||||||
|
if not reload:
|
||||||
|
runserver_args.append('--noreload') # '--insecure'
|
||||||
call_command("runserver", *runserver_args)
|
call_command("runserver", *runserver_args)
|
||||||
else:
|
else:
|
||||||
|
|
||||||
host = '127.0.0.1'
|
host = '127.0.0.1'
|
||||||
port = '8000'
|
port = '8000'
|
||||||
|
|
||||||
|
@ -1367,9 +1361,12 @@ def server(runserver_args: Optional[List[str]]=None,
|
||||||
except IndexError:
|
except IndexError:
|
||||||
pass
|
pass
|
||||||
|
|
||||||
|
print(f' > Starting ArchiveBox webserver on http://{host}:{port}/')
|
||||||
|
|
||||||
from queues.supervisor_util import get_or_create_supervisord_process, start_worker, stop_worker, watch_worker
|
from queues.supervisor_util import get_or_create_supervisord_process, start_worker, stop_worker, watch_worker
|
||||||
|
|
||||||
print()
|
print()
|
||||||
|
|
||||||
supervisor = get_or_create_supervisord_process(daemonize=False)
|
supervisor = get_or_create_supervisord_process(daemonize=False)
|
||||||
|
|
||||||
bg_workers = [
|
bg_workers = [
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue