installation.rst 1.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485
  1. Installation
  2. ============
  3. - `Basic Setup <#basic-setup>`_
  4. - `Configuration <#configuration>`_
  5. - `Deplyoing <#deploying>`_
  6. Basic Setup
  7. ===========
  8. Virtualenv Setup
  9. ~~~~~~~~~~~~~~~~
  10. Before you can start, you need to create a `virtualenv`.
  11. ::
  12. $ mkvirtualenv flaskbb
  13. Required Dependencies
  14. ~~~~~~~~~~~~~~~~~~~~~
  15. Now you can install the required dependencies.
  16. ::
  17. $ pip install -r requirements.txt
  18. Optional Dependencies
  19. ~~~~~~~~~~~~~~~~~~~~~~
  20. We have two optional dependencies, redis (the python package is installed automatically).
  21. If you want to use redis, be sure that a redis-server is running.
  22. On Archlinux
  23. ------------
  24. ::
  25. # Install redis
  26. $ sudo pacman -S redis
  27. # Check if redis is already running.
  28. $ systemctl status redis
  29. # If not, start it.
  30. $ sudo systemctl start redis
  31. # Optional: Start redis everytime you boot your machine
  32. $ sudo systemctl enable redis
  33. Configuration
  34. =============
  35. Google Mail Example
  36. ~~~~~~~~~~~~~~~~~~~
  37. Local SMTP Server Example
  38. ~~~~~~~~~~~~~~~~~~~~~~~~~
  39. Deploying
  40. =========
  41. Supervisor
  42. ~~~~~~~~~~
  43. uWSGI
  44. ~~~~~
  45. nginx
  46. ~~~~~