README.rst 1.7 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182
  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