README.rst 588 B

12345678910111213141516171819202122
  1. hello
  2. =====
  3. Install
  4. -------
  5. #. Follow pythonz install doc
  6. #. pythonz install 3.4.2
  7. #. cd /opt
  8. #. Git clone your app here
  9. #. cd /opt/hello/
  10. #. /usr/local/pythonz/pythons/CPython-3.4.2/bin/pyvenv pyvenv
  11. #. . pyvenv/bin/activate
  12. #. pip install -r requirements.txt
  13. #. cd /etc/init.d/ && ln -s /opt/hello/etc/init.d/hello
  14. #. cd /etc/default/ && ln -s /opt/hello/etc/default/hello
  15. #. cd /etc/monit/conf.d/ && ln -s /opt/hello/etc/monit/conf.d/hello
  16. #. update-rc.d hello defaults
  17. #. cp -a /opt/hello/etc/hello /etc/
  18. #. Adapt rsyslog and lograte
  19. #. service hello start
  20. #. service monit restart