README.rst 1.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081
  1. Pagure
  2. ======
  3. :Author: Pierre-Yves Chibon <pingou@pingoured.fr>
  4. Pagure is a git-centered forge, python based using pygit2.
  5. With pagure you can host your project with its documentation, let your users
  6. report issues or request enhancements using the ticketing system and build your
  7. community of contributors by allowing them to fork your projects and contribute
  8. to it via the now-popular pull-request mechanism.
  9. Homepage: https://pagure.io/pagure
  10. See it at work: https://pagure.io
  11. Playground version: https://stg.pagure.io
  12. Get it running
  13. ==============
  14. * Install the needed system libraries::
  15. sudo dnf install git python-virtualenv libgit2-devel \
  16. libjpeg-devel gcc libffi-devel redhat-rpm-config
  17. .. note:: Do note the version of libgit2 that you install, for example
  18. in ``libgit2-0.23.4-1`` you need to keep in mind the ``0.23``
  19. * Retrieve the sources::
  20. git clone https://pagure.io/pagure.git
  21. cd pagure
  22. * Install dependencies
  23. * create the virtualenv::
  24. virtualenv pagure_env
  25. source ./pagure_env/bin/activate
  26. * Install the correct version of pygit2::
  27. pip install pygit2==<version of libgit2 found>.*
  28. So in our example::
  29. pip install pygit2==0.23.*
  30. * Install the rest of the dependencies::
  31. pip install -r requirements.txt
  32. * Create the folder that will receive the projects, forks, docs, requests and
  33. tickets' git repo::
  34. mkdir {repos,docs,forks,tickets,requests}
  35. * Create the inital database scheme::
  36. python createdb.py
  37. * Run it::
  38. ./runserver.py
  39. * To get some profiling information you can also run it as::
  40. ./runserver.py --profile
  41. This will launch the application at http://127.0.0.1:5000