Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

HACKING: Add PostgreSQL tips and mention more rake tasks

rake ultrasphinx:configure generates invalid SQL because user is a keyword
in PostgreSQL.  We now mention a workaround in the HACKING file.  We also
mention a few more rake tasks as well.

Signed-off-by: David Aguilar <davvid@gmail.com>
  • Loading branch information...
commit 8c7bdb8607749d5a7e0fcbe7ebab231ada2f842c 1 parent cdbaa40
@davvid davvid authored
Showing with 13 additions and 2 deletions.
  1. +13 −2 HACKING
View
15 HACKING
@@ -27,9 +27,9 @@ Libraries/applications:
2. Rename the config/gitorious.sample.yml file to gitorious.yml, and update it with your changes.
3a. If you want real project data, find a project, set the 'ready' status to true, create a bare git repository (git --bare init) in the directory GitoriousConfig['repository_base_path']/#{project.slug}/#{repository.name}.git, and push something to that repository (cd to a git repository with commits and do "git push path/to/the/bare/repository/you/just/created master").
-
+
3b. OR run the script/task_performer and let it create the repository for you (remember to do step 2 first)
-
+
4. Get your git on!
Consult the mailinglist (http://groups.google.com/group/gitorious) or drop in
@@ -38,9 +38,20 @@ by #gitorious on irc.freenode.net if you have questions.
=== Tasks and other scripts
+* rake db:migrate creates the initial database tables
* script/task_performer runs any tasks in the queue (creating repositories etc)
* script/graph_generator generates graph.
+* rake ultrasphinx:configure configures sphinx
* rake ultrasphinx:index runs the search indexer
+* rake ultrasphinx:daemon:start and ultrasphinx:daemon:stop manage the sphinx daemon
+
+
+=== PostgreSQL
+
+* Install the functions in vendor/plugins/ultrasphinx/lib/ultrasphinx/postgresql/
+* After running "rake ultrasphinx:configure" you'll have to replace all instances of user with "user" in ultrasphinx's config file (user is a keyword in PostgreSQL).
+
+ perl -p -i -e 's/ user([^s]{1})/ "user"$1/g' config/ultrasphinx/*.conf
=== Coding style
Please sign in to comment.
Something went wrong with that request. Please try again.