Commits

Benoit C committed 9fe6c2c

Comments (0)

Files changed (1)

 * wsgi_restart
 
 
+=== Configuration ===
 
+I want the configuration file to be succint, and to have one file for one projet (with, "staging", "preprod" and "prod")
 
+Here is an example :
 
+--- #YAML:1.1
+
+
+#can be "prod" or "preprod"
+prod:
+    distro:
+        name: debian
+        packages: [python-virtualenv, libmysqlclient15-dev]
+    project:
+        name: project_name
+        normal_user: user
+        sudo_user: sudo_user
+        logs: project_name.log
+        root_dir: /home/web/django/
+        doc_root: /home/web/django/project_name/
+    hosts:
+        web: [inventeev.com]
+    database:
+        type: mysql
+        host: 
+        port: 
+        user: 
+        db: 
+        pw: 
+        backup: /path/to/database/backup
+    hg:
+        url: 
+        repos: 
+        dest: 
+        user: 
+        pw: 
+    django:
+        doc_root: /path/to/projet_root
+        src_dir: /path/to/django/project/dir
+        apps: [app,list]
+    virtualenv:
+        dir: /path/to/desired/folder/for/your/virtualenv
+        bin_dir: /path/to/desired/folder/for/your/virtualenv/bin
+        
+    wsgi:
+        type: gunicorn
+        bin_name: gunicorn_django
+        path: /path/to/desired/folder/for/your/virtualenv/bin
+        pidfile: /where/to/store/your/pidfile
+        logfile: /where/to/store/your/wsgi/logfile
+        host: 127.0.0.1
+        port: [9111]
+        workers: 2
+    httpd:
+        type: nginx
+        en: /etc/nginx/sites-enabled/
+        av: /etc/nginx/sites-available/
+        
+    services:
+        restart:
+            [memcached]
+        reload:
+            [nginx]
+
+
+
+