django + wsgiを使用したビルドアウトがあり、開発と本番環境でうまく機能しています。唯一の問題は、buildout.cfgに変更または追加を行い、bin / buildoutを実行する必要がある場合、ビルドアウトの開始時から終了時までWebサイトがオフラインになることです。これには5分以上かかる場合があります。
本番環境でビルドアウトを適切に実行する方法はありますか?たぶん、私が知らないパラメータは、最初にすべてをアンインストールせずにビルドアウトを実行しますか?このサイトは1つのWebサーバーで実行されています。ロードバランサーと追加のWebサーバーは良い修正ですが、現時点では実行可能ではありません。
私のビルドアウトスクリプトに関する他のコメント/提案/批評は大歓迎です。
ありがとう!
これが私のbuildout.cfgです:
[buildout]
download-cache = downloads
unzip = true
parts =
scripts
django
djangoprod
eggs =
${scripts:eggs}
${pipscripts:eggs}
[scripts]
recipe = zc.recipe.egg
unzip = true
download-cache = ${buildout:download-cache}
eggs =
ipython
docutils
feedparser
pygments
South
django-grappelli
django-extensions
django-mobile
django-photologue
django-filebrowser
django-indexer
django-paging
django-templatetag-sugar
django-sentry
MySQL-python
find-links =
http://dist.repoze.org/
http://github.com/
http://bitbucket.org/
http://googlecode.com/
http://surfnet.dl.sourceforge.net/
[pipscripts]
recipe = gp.recipe.pip
unzip = true
download-cache = ${buildout:download-cache}
editables =
hg+https://bitbucket.org/ubernostrum/django-registration#egg=django_registration
git://github.com/jtauber/django-mailer.git#egg=django_mailer
eggs =
django-registration
django-mailer
PIL
install =
http://effbot.org/downloads/Imaging-1.1.7.tar.gz
[django]
recipe = djangorecipe
download-cache = ${buildout:download-cache}
eggs = ${buildout:eggs}
version = 1.3
project = project
[djangoprod]
recipe = djangorecipe
download-cache = ${django:download-cache}
version = ${django:version}
settings = production
wsgi = true
eggs = ${django:eggs}
project = ${django:project}