aboutsummaryrefslogtreecommitdiff
path: root/README
diff options
context:
space:
mode:
authorRobin H. Johnson <robbat2@gentoo.org>2007-10-12 04:16:45 +0000
committerroot <root@finch.gentoo.org>2007-10-12 04:16:45 +0000
commitcbf4c36c1f4fecbd08111814ee4eb3f128714ead (patch)
tree7851451f466a7954c315d1ade66fa679685713a5 /README
parentRevert "Live site settings." (diff)
downloadpackages-3-cbf4c36c1f4fecbd08111814ee4eb3f128714ead.tar.gz
packages-3-cbf4c36c1f4fecbd08111814ee4eb3f128714ead.tar.bz2
packages-3-cbf4c36c1f4fecbd08111814ee4eb3f128714ead.zip
Update instructions and ship a special minimal etc/ directory to make the bundled copy of pkgcore happy.
Diffstat (limited to 'README')
-rw-r--r--README15
1 files changed, 10 insertions, 5 deletions
diff --git a/README b/README
index 72a7f91..f4ba362 100644
--- a/README
+++ b/README
@@ -33,24 +33,29 @@ it can be used both standalone or together with mod_python
GETTING IT GOING
================
+APPROOT = the directory you checked out of Git
+
1) Pick a box to get the db generated
-- Choose db backend now in core.py (assume you've chosen sqlite
for instructions below)
-2) cd dbgenerator && python core.py
+2) cd $APPROOT/dbgenerator && time CONFIG_ROOT=.. PYTHONPATH=.. python core.py
pick up the resulting pgo.db file
4) move the db file so that it resides in the dir you run the CherryPy
controller from, in this example I'd recomment sticking it into
- the dir of this README
+ the dir of this README. Alternatively, leave it where it is.
+
+5) Edit web/controller.py to have the location of the pgo.db, or the settings
+ for MySQL.
-5) start CherryPy standalone:
- PYTHONPATH=. python web/controller.py
+6) start CherryPy standalone:
+ cd $APPROOT && PYTHONPATH=. python web/controller.py
this should give you something like
"HTTP Serving HTTP on http://0.0.0.0:8080/"
-6) now point a webbrowser at http://localhost:8080/
+7) now point a webbrowser at http://localhost:8080/
and you should see the packages.gentoo.org site