diff --git a/Gruntfile.js b/Gruntfile.js index 7226c0d2..7528abe4 100644 --- a/Gruntfile.js +++ b/Gruntfile.js @@ -149,7 +149,7 @@ module.exports = function (grunt) { bg: true }, run: { - cmd: 'python manage.py runserver 0.0.0.0:<%= paths.port %>' + cmd: 'uwsgi uwsgi-dev.ini' } } }); diff --git a/uwsgi-dev-default.ini b/uwsgi-dev-default.ini index 49c121c0..da9b0cb0 100644 --- a/uwsgi-dev-default.ini +++ b/uwsgi-dev-default.ini @@ -1,4 +1,5 @@ [uwsgi] +; app gets connected to this port http-socket = :8000 master = true processes = 4 @@ -7,6 +8,9 @@ gevent = 100 http-websockets = true env = DJANGO_SETTINGS_MODULE=csp.settings module = csp.wsgi:application +; auto reload if python files modified py-autoreload = 1 ; http://uwsgi-docs.readthedocs.org/en/latest/LogFormat.html -logformat = [%(ltime)] "%(method) %(uri) %(proto)" %(status) %(msecs) %(size) \ No newline at end of file +logformat = [%(ltime)] "%(method) %(uri) %(proto)" %(status) %(msecs) %(size) +; enable for HTTPS mode +;https = :8000,cacert.pem,private_key.pem,HIGH \ No newline at end of file