>
> I ran into this problem today, and I don't use supervisor, nor do I use
> gunicorn. Today I switched to gunicorn though cuz I couldn't figure out
> what was going on. There were no issues in dev mode when I ran the server
> using runserver. The issues weren't obvious even when running the uwsgi
> server from command line, it "seemed" to work, but there was a complete
> issue when trying to run it as a service using upstart... I should
> probably use the same stack everyone else is using and learn the fab file
> that comes with.. But anyways, I switched to gunicorn and it worked as a
> service so I thought ok problem solved. But then I got the Local Changed
> error. What fixed it for me was exporting all these locale variables as
> described above using export. Now even uwsgi is working great now.. I'm
> still sticking to sockets but I'll use gunicorn just to be safe. I thought
> uWSGI was supposed to be faster thats why I was using it. I don't know
> much about supervisor so I use upstart, and I use sockets because its
> slightly faster (no TCP/IP overhead).
export LANG=en_US.UTF-8, LC_ALL=en_US.UTF-8, LC_LANG=en_US.UTF-8
exec gunicorn -k eventlet ${DJANGO_WSGI_MODULE}:application \
--name $NAME \
--workers $NUM_WORKERS \
--log-level=debug \
--bind=unix:$SOCKFILE
--
You received this message because you are subscribed to the Google Groups
"Mezzanine Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
For more options, visit https://groups.google.com/groups/opt_out.