Deployment strategies

Therefore, I am applying zc.buildout to an existing django project. I am wondering how to do this. How to achieve a sandbox effect on a production server?

+3
source share
2 answers

Not sure what you mean by the sandbox effect. If you mean "isolated assembly": yes, this is what is being built. Although it can use the cache directory for each user, if you said it in your own ~/.buildout/default.cfg. If you want a really strict sandbox on your production server, you will have to disable it.

, . - ; cron ; 8080 .

: a deploy.cfg . buildout.cfg . , buildout.cfg. - :

[buildout]
  extends = buildout.cfg
  parts += 
      startup-cronjob

  [instance]
  # Some changes, like port number.
  http-address = 13080
  debug-mode = off
  verbose-security = off

  [startup-cronjob]
  # Example part that new to the deploy.cfg, it wasn't in buildout.cfg.
  recipe = z3c.recipe.usercrontab
  times = @reboot
  command = ${buildout:directory}/bin/supervisord

- !

+4

include site packages:

 [buildout]
 include-site-packages = false

( , , .)

0

Source: https://habr.com/ru/post/1724547/


All Articles