Não pode escolher mais do que 25 tópicos Os tópicos devem começar com uma letra ou um número, podem incluir traços ('-') e podem ter até 35 caracteres.
 
 
 
 
 
 

43 linhas
1.7 KiB

  1. Deployment
  2. ==========
  3. Deployment for a Django project is easier than most other frameworks and
  4. languages but it's harder than a PHP project. We recommend using Docker to
  5. deploy Pinry and we already have a Dockerfile created for you to do this. If
  6. you'd like to deploy via another method please see `Django's documentation`_ on
  7. the subject.
  8. Notes On Deployment
  9. -------------------
  10. While we don't want to go in depth on Django deployment you will need a few tips
  11. for Pinry specific configuration. While most of Pinry acts like a standard
  12. Django project we have a special settings setup.
  13. By default Django just has a single ``settings.py`` file in it's project folder,
  14. we deviate from this in that we have a ``settings`` folder, ``pinry/settings``.
  15. To change the base settings of Pinry you can play with
  16. ``pinry/settings/__init__.py`` but never import or run directly by pointing to
  17. ``pinry/settings`` or ``pinry/settings/__init__.py``, instead use
  18. ``pinry/settings/development.py`` and ``pinry/settings/production.py``. For a
  19. production deployment you're going to need to edit ``production.py`` and point
  20. that at the correct database and add your own ``SECRET_KEY``. Also note that
  21. you're going to have to add the setting ``ALLOWED_HOSTS`` to point at the host
  22. names going to your server or Django will block everyone trying to access your
  23. site.
  24. Using Docker
  25. ------------
  26. Our supported and suggested way to deploy Pinry is using Docker. We provide
  27. support and instructions for that over at the `docker-pinry GitHub repository`_.
  28. .. Links
  29. .. _Django's documentation: https://docs.djangoproject.com/en/1.5/howto/deployment/
  30. .. _docker-pinry GitHub repository: https://github.com/pinry/docker-pinry