The appdeploy module helps Django deploys by:
- Installing compilation dependecies
- Setting up reverse proxy
- Configuring supervisor to manage the application execution
- Configuring gunicorn WSGI server
- Allowing the user to set a websocket proxy
appdeploy::django { 'myappname':
user => 'myuser',
directory => '/home/myuser/myappsrc',
proxy_hosts => [
'myappname.com',
'internal.myappname.com',
],
}
Parameters:
- user: user that will run the application it self. This user must have access to the source code in
directory
. - directory: where the application source code will be placed.
- proxy_hosts: the server_name(s) that Nginx will listen to and redirect requests to the deployed app.
Installs development libraries and headers to allow compilation of specific libraries.
Currently supporting:
- appdeploy::deps::postgresql: dependecies for
psycopg2
- appdeploy::deps::mysql: dependecies for
MySQL-python
- appdeploy::deps::lxml: dependecies for
lxml
- appdeploy::deps::scrapy: dependecies for
scrapy
Releases are published on Puppet Forge