mirror of
https://github.com/ArchiveBox/ArchiveBox.git
synced 2026-09-14 11:06:13 +05:00
Use web setup in shipped Compose guide
This commit is contained in:
parent
d71496a600
commit
75bc6056ce
@ -733,8 +733,11 @@ def test_unconfigured_public_host_superuser_can_reach_setup_wizard(tmp_path: Pat
|
||||
assert config_result.returncode == 0, config_result.stderr or config_result.stdout
|
||||
assert expected in config_result.stdout
|
||||
|
||||
compose = yaml.safe_load((Path(__file__).resolve().parents[2] / "docker-compose.yml").read_text())
|
||||
compose_text = (Path(__file__).resolve().parents[2] / "docker-compose.yml").read_text()
|
||||
compose = yaml.safe_load(compose_text)
|
||||
archivebox_environment = compose["services"]["archivebox"]["environment"]
|
||||
assert "Open http://admin.archivebox.localhost:8000/admin/ to create the first admin and finish web setup." in compose_text
|
||||
assert "manage createsuperuser" not in compose_text
|
||||
assert compose["services"]["archivebox"]["restart"] == "unless-stopped"
|
||||
assert "BASE_URL" in archivebox_environment
|
||||
assert "SERVER_SECURITY_MODE" in archivebox_environment
|
||||
|
||||
@ -3,8 +3,7 @@
|
||||
# curl -fsSL 'https://docker-compose.archivebox.io' > docker-compose.yml
|
||||
# docker compose pull
|
||||
# docker compose up -d --wait
|
||||
# docker compose exec archivebox archivebox manage createsuperuser
|
||||
# open 'http://admin.archivebox.localhost:8000'
|
||||
# Open http://admin.archivebox.localhost:8000/admin/ to create the first admin and finish web setup.
|
||||
|
||||
# docker compose exec archivebox archivebox add --depth=1 'https://news.ycombinator.com'
|
||||
# docker compose exec -T archivebox archivebox add < ~/Downloads/bookmarks.txt
|
||||
|
||||
Loading…
Reference in New Issue
Block a user