aboutsummaryrefslogtreecommitdiff
blob: 888d836d8c410b9768357073cd0ee06aac12662e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
# New version of packages.gentoo.com site

## Quick install

First you should install all required dependencies, check this in Requirements file
Then you need configure it, for this create configuration file `local_settings.py` 
in gpackages/main/ dir , for example you could see gpackages/main/local_settings.py.example file.
After creating configuration you need create tables in your database, for this execute these commands:

    $ cd gpackages
    $ ./manage.py syncdb
    $ ./manage.py migrate

Then maybe you want collect first packages data, for this you need execute that command:
    
    $ ./manage.py scanpackages -a

This will collect info about all packages in all overlays.
If you want check what overlays available, then type this command:

    $ ./manage.py listrepos

After first scanning you should also add info about use flags and licenses text
You could do this with such commands:

    $ ./manage.py scanusedesc
    $ ./manage.py scanlicensetext

Now you could run demo web-server:
    
    $ ./manage.py runserver

For deployment check [django deployment docs][django_deploy].

## Documentation 

Check docs dir

[django_deploy]: https://docs.djangoproject.com/en/1.4/howto/deployment/wsgi/modwsgi/