Sync CSS with archweb
[aur.git] / TESTING
blobb0a5f628646ae596007964e5736300b39cef89e9
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
6 INSTALL.
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 words fortune-mod
16    Ensure to enable the pdo_sqlite extension in php.ini.
18 3) Prepare the testing database:
20     $ cd /path/to/aurweb/schema
21     $ make
22     $ ./gendummydata.py out.sql
23     $ sqlite3 ../aurweb.sqlite3 < aur-schema-sqlite.sql
24     $ sqlite3 ../aurweb.sqlite3 < out.sql
26 4) Copy conf/config.defaults to conf/config and adjust the configuration
27    (pay attention to disable_http_login, enable_maintenance and aur_location).
29    Be sure to change backend to sqlite and name to the file location of your
30    created test database.
32 5) Run the PHP built-in web server:
34    $ AUR_CONFIG='/path/to/aurweb/conf/config' php -S localhost:8080 -t /path/to/aurweb/web/html