[PATCH] Add missing instruction for testing aurweb with a sqlite database

Baptiste Jonglez baptiste at bitsofnetworks.org
Sun Jan 28 21:48:16 UTC 2018


From: Baptiste Jonglez <git at bitsofnetworks.org>

Also clarify what to change in the configuration.

Signed-off-by: Baptiste Jonglez <git at bitsofnetworks.org>
---
 TESTING | 12 +++++++-----
 1 file changed, 7 insertions(+), 5 deletions(-)

diff --git a/TESTING b/TESTING
index d2c97d9..fca23d7 100644
--- a/TESTING
+++ b/TESTING
@@ -13,7 +13,9 @@ INSTALL.
 
     # pacman -S php php-sqlite sqlite
 
-3) Prepare the testing database:
+3) Uncomment "extension=pdo_sqlite" in /etc/php/php.ini
+
+4) Prepare the testing database:
 
     $ cd /path/to/aurweb/schema
     $ make
@@ -21,12 +23,12 @@ INSTALL.
     $ sqlite3 ../aurweb.sqlite3 < aur-schema-sqlite.sql
     $ sqlite3 ../aurweb.sqlite3 < out.sql
 
-4) Copy conf/config.proto to conf/config and adjust the configuration
+5) Copy conf/config.proto to conf/config and adjust the configuration
    (pay attention to disable_http_login, enable_maintenance and aur_location).
 
-   Be sure to change backend to sqlite and name to the file location of your
-   created test database.
+   Be sure to set "backend" to "sqlite" and "name" to the file location of your
+   created test database.  An absolute path is recommended.
 
-5) Run the PHP built-in web server:
+6) Run the PHP built-in web server:
 
    $ AUR_CONFIG='/path/to/aurweb/conf/config' php -S localhost:8080 -t /path/to/aurweb/web/html
-- 
2.16.1


More information about the aur-dev mailing list