'localhost',
'el.pro-barreau.dockdev.pilotsystems.net',
'e-learning.pro-barreau.com',
+ 'staging.el.pro-barreau.parisson.com'
]
DATABASES = {
# trailing slash if there is a path component (optional in other cases).
# Examples: "http://media.lawrence.com", "http://example.com/media/"
#MEDIA_URL = 'http://pre-barreau.com/archives/'
-MEDIA_URL = '/media/'
+MEDIA_URL = 'https://e-learning.pro-barreau.com/media/'
# Absolute path to the directory static files should be collected to.
# Don't put anything in this directory yourself; store your static files
worker-reload-mercy = 300 ; How long to wait before forcefully killing workers
cheaper-algo = busyness
-processes = 64 ; Maximum number of workers allowed
-cheaper = 24 ; Minimum number of workers allowed
-cheaper-initial = 24 ; Workers created at startup
+processes = 4 ; Maximum number of workers allowed
+cheaper = 2 ; Minimum number of workers allowed
+cheaper-initial = 2 ; Workers created at startup
cheaper-overload = 1 ; Length of a cycle in seconds
-cheaper-step = 8 ; How many workers to spawn at a time
+cheaper-step = 1 ; How many workers to spawn at a time
cheaper-busyness-multiplier = 30 ; How many cycles to wait before killing workers
cheaper-busyness-min = 20 ; Below this threshold, kill workers (if stable for multiplier cycles)
# watchmedo shell-command --patterns="$patterns" --recursive \
# --command='python '$manage' collectstatic --noinput' $app &
- python $manage collectstatic --noinput
+ #python $manage collectstatic --noinput
chown -R www-data: $debug_log