Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
20 changes: 12 additions & 8 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -48,32 +48,36 @@ probably want the following:
5. Migrate changes.

uv run ./manage.py migrate
6. Load the fixtures to pre populate some data. If you don't want some of the
6. Load the fixtures to pre-populate some data. If you don't want some of the
provided data, adjust the file glob accordingly.

uv run ./manage.py loaddata main/fixtures/*.json
uv run ./manage.py loaddata devel/fixtures/*.json
uv run ./manage.py loaddata mirrors/fixtures/*.json
uv run ./manage.py loaddata releng/fixtures/*.json
7. Use the following commands to start a service instance
7. Use the following commands to start a service instance:

uv run ./manage.py runserver
8. To optionally populate the database with real data:

wget http://mirrors.kernel.org/archlinux/core/os/x86_64/core.db.tar.gz
8. Populate the database with real data (optional)
You can optionally populate your database with real package data from an Arch Linux mirror:

wget https://geo.mirror.pkgbuild.com/core/os/x86_64/core.db.tar.gz
uv run ./manage.py reporead x86_64 core.db.tar.gz
# Package file listing
wget http://mirrors.kernel.org/archlinux/core/os/x86_64/core.files.tar.gz
wget https://geo.mirror.pkgbuild.com/core/os/x86_64/core.files.tar.gz
uv run ./manage.py reporead --filesonly x86_64 core.files.tar.gz

Alter architecture and repo to get x86\_64 and packages from other repos if
needed.
Customization notes: Modify the URL path and architecture argument (x86_64) if you need a different architecture or
repository (e.g., extra). If the default mirror experiences downtime or slow speeds, you can swap the base URL
with another mirror. Find a complete, up-to-date list of active mirrors at the
[Arch Linux Mirror Status](https://archlinux.org/mirrors/status/) page.

9. Database Updates for Added/Removed packages

sqlite3 archweb.db < packages/sql/update.sqlite3.sql

For PostgreSQL use packages/sql/update.postgresql_psycopg2.sql
For PostgreSQL use packages/sql/update.postgresql_psycopg2.sql


# Testing SMTP server
Expand Down
Loading