Skip to content

minty/PSNIC

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

60 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

# For now, you MUST have a minicpan setup. This dependency needs fixing.

    http://search.cpan.org/perldoc?minicpan

# Create the database & user

    $ mysqladmin -u root -p create cpan
    $ mysql -u root -p
    mysql> GRANT SELECT, INSERT, UPDATE, DELETE, CREATE, DROP, INDEX
        ON cpan.* TO some_user@localhost IDENTIFIED BY 'some_password';

# Update the config with db name, user & password.

    $ vi psnic.conf

# I would suggest tweaking the MySQL fulltext parameters.  Note these
# change the settings for ALL databases on the server.
# In the [mysqld] section of my.cnf (/etc/mysql/my.cnf on debian/ubuntu)

    ft_min_word_len=1
    ft_max_word_len=254
    ft_stopword_file=

# You must restart mysqld for these to take effect.

# Create the tables/schema

    $ ./script/index.pl -v --reset-db

# Build indexes.
# ~20-30mins on a 2Ghz Macbook Pro host or a £15/month bytemark.co.uk vm

    $ ./script/index.pl -v -a -d -i

# Then run the application:

    $ ./script/psnic_server.pl [-r]

-r will have the server auto reload if you change any Perl code.

About

Yet another perl source code search tool

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published