# clear environment on exit
vacuum = true
# optional path to a virtualenv
-#home = env
-# background the process
-daemonize = django.uwsgi.log
\ No newline at end of file
+#home = env
\ No newline at end of file
#
import os
+import sys
+
from sqlalchemy.engine.url import make_url
# Build paths inside the project like this: os.path.join(BASE_DIR, ...)
LOCALE_PATHS = (
os.path.join(BASE_DIR, 'locale'),
)
+
+LOGGING = {
+ 'version': 1,
+ 'disable_existing_loggers': False,
+ 'formatters': {
+ 'verbose': {
+ 'format': '[django] %(levelname)s %(asctime)s %(module)s %(process)d %(thread)d %(message)s'
+ }
+ },
+ 'handlers': {
+ 'console': {
+ 'level': 'DEBUG',
+ 'class': 'logging.StreamHandler',
+ 'stream': sys.stdout,
+ 'formatter': 'verbose'
+ },
+ },
+ 'loggers': {
+ 'django': {
+ 'handlers': ['console'],
+ 'level': 'DEBUG',
+ 'propagate': True,
+ },
+ },
+}
\ No newline at end of file
[program:app-uwsgi]
-command = /usr/local/bin/uwsgi --ini /usr/share/osm-lightui/django.ini
+command = /usr/local/bin/uwsgi --ini /usr/share/osm-lightui/django.ini --log-master
environment=DJANGO_ENV="prod"
+stdout_logfile=/dev/stdout
+stdout_logfile_maxbytes=0
+stdout_logfile=/dev/stderr
+stdout_logfile_maxbytes=0
[program:nginx-app]
command = /usr/sbin/nginx
+stdout_logfile=/dev/stdout
+stdout_logfile_maxbytes=0
+stdout_logfile=/dev/stderr
+stdout_logfile_maxbytes=0
\ No newline at end of file