1 Setup Testing Environment
2 =========================
4 Note that this setup is only to test the web interface. If you need to have a
5 full aurweb instance with cgit, ssh interface, etc, follow the directions in
8 1) Clone the aurweb project:
10 $ git clone git://git.archlinux.org/aurweb.git
12 2) Install php and necessary modules:
14 # pacman -S php php-sqlite sqlite
16 3) Prepare the testing database:
18 $ cd /path/to/aurweb/schema
20 $ ./gendummydata.py out.sql
21 $ sqlite3 ../aurweb.sqlite3 < aur-schema-sqlite.sql
22 $ sqlite3 ../aurweb.sqlite3 < out.sql
24 4) Copy conf/config.proto to conf/config and adjust the configuration
25 (pay attention to disable_http_login, enable_maintenance and aur_location).
27 Be sure to change backend to sqlite and name to the file location of your
28 created test database.
30 5) Run the PHP built-in web server:
32 $ AUR_CONFIG='/path/to/aurweb/conf/config' php -S localhost:8080 -t /path/to/aurweb/web/html