Care and feeding of a Playdoh-based app.
Apps are typically run under Apache and mod_wsgi in production. Entry point:
wsgi/playdoh.wsgi
(or whatever you rename it to...)
Developers can set that up or run in stand-alone mode:
./manage.py runserver 0.0.0.0:8000
It is critical that developers run the app at least once via mod_wsgi before certifying an app as stage ready.
This is a typical virtualhost directive being used in production:
<VirtualHost *:80>
ServerName %HOSTNAME%
Alias /media %APP_PATH/media
WSGIScriptAlias / %APP_PATH/wsgi/playdoh.wsgi
WSGIDaemonProcess playdoh processes=16 threads=1 display-name=playdoh
WSGIProcessGroup playdoh
</VirtualHost>
TODO (memcache, redis)
Apps are typically run behind a Zeus load balancer.
Apps typically use a MySQL database.
Playdoh comes packaged with celery and works well with RabbitMQ.
You can run update_site.py to keep your app current. It does the following:
./bin/update_site.py -e dev
./bin/update_site.py -e stage
./bin/update_site.py -e prod
You may pass a -v and update_site will explain what commands as it runs them.
If there is an error on any step, the script stops.
IT will typically put bin/update_site.py into a cron for auto-deployment to stage environments.
Edit your copy to customize your branching and/or release practices.