Rename server app to kaze, add release notes.
This commit is contained in:
@@ -1,4 +1,4 @@
|
|||||||
2.1 (2016-XX)
|
2.1 (2016-04)
|
||||||
=============
|
=============
|
||||||
- Upgrade to use Django 1.8.8. Issue #246.
|
- Upgrade to use Django 1.8.8. Issue #246.
|
||||||
- Upgrade requirements.
|
- Upgrade requirements.
|
||||||
@@ -31,6 +31,7 @@
|
|||||||
- Add support for signing documents.
|
- Add support for signing documents.
|
||||||
- Instead of multiple keyservers only one keyserver is now supported.
|
- Instead of multiple keyservers only one keyserver is now supported.
|
||||||
- Replace document type selection widget with an opened selection list.
|
- Replace document type selection widget with an opened selection list.
|
||||||
|
- Add simple server using tornado.
|
||||||
|
|
||||||
2.0.2 (2016-02-09)
|
2.0.2 (2016-02-09)
|
||||||
==================
|
==================
|
||||||
|
|||||||
@@ -102,6 +102,15 @@ screen. These messages can have an activation and an experiation date and
|
|||||||
time. These messages are useful for display company access policies,
|
time. These messages are useful for display company access policies,
|
||||||
maintenance announcement, etc.
|
maintenance announcement, etc.
|
||||||
|
|
||||||
|
New server app using tornado
|
||||||
|
----------------------------
|
||||||
|
This release includes a simple app that can serve Mayan EDMS using the tornado
|
||||||
|
server. Using this app users can start using Mayan EDMS with minimal setup
|
||||||
|
(just install Redis). By default the server will run on port 52723, but users
|
||||||
|
can change the port with the --port option. For privileged port (ports
|
||||||
|
below 1024) the command must be run as superadmin. This is an experimental
|
||||||
|
feature, feedback and patches are appreciated.
|
||||||
|
|
||||||
Document signing
|
Document signing
|
||||||
----------------
|
----------------
|
||||||
The biggest change for this release if the addition of document signing from
|
The biggest change for this release if the addition of document signing from
|
||||||
|
|||||||
@@ -1,5 +1,7 @@
|
|||||||
from __future__ import unicode_literals
|
from __future__ import unicode_literals
|
||||||
|
|
||||||
|
import os
|
||||||
|
|
||||||
from django.core import management
|
from django.core import management
|
||||||
from django.core.wsgi import get_wsgi_application
|
from django.core.wsgi import get_wsgi_application
|
||||||
|
|
||||||
@@ -16,24 +18,23 @@ class Command(management.BaseCommand):
|
|||||||
help = 'Launches a local Tornado server.'
|
help = 'Launches a local Tornado server.'
|
||||||
|
|
||||||
def add_arguments(self, parser):
|
def add_arguments(self, parser):
|
||||||
parser.add_argument(
|
parser.add_argument(
|
||||||
'--single-process',
|
'--single-process',
|
||||||
action='store_true',
|
action='store_true',
|
||||||
dest='single-process',
|
dest='single-process',
|
||||||
default=False,
|
default=False,
|
||||||
help='Forces only one server process.'
|
help='Forces only one server process.'
|
||||||
)
|
)
|
||||||
|
|
||||||
parser.add_argument(
|
parser.add_argument(
|
||||||
'--port',
|
'--port',
|
||||||
action='store',
|
action='store',
|
||||||
dest='port',
|
dest='port',
|
||||||
default=DEFAULT_PORT,
|
default=DEFAULT_PORT,
|
||||||
help='Port on which to bind the server.'
|
help='Port on which to bind the server.'
|
||||||
)
|
)
|
||||||
|
|
||||||
def handle(self, *args, **options):
|
def handle(self, *args, **options):
|
||||||
|
|
||||||
wsgi_application = get_wsgi_application()
|
wsgi_application = get_wsgi_application()
|
||||||
wsgi_container = tornado.wsgi.WSGIContainer(wsgi_application)
|
wsgi_container = tornado.wsgi.WSGIContainer(wsgi_application)
|
||||||
|
|
||||||
@@ -56,13 +57,13 @@ class Command(management.BaseCommand):
|
|||||||
if options['single-process']:
|
if options['single-process']:
|
||||||
http_server.listen(options['port'])
|
http_server.listen(options['port'])
|
||||||
ioloop = tornado.ioloop.IOLoop.instance()
|
ioloop = tornado.ioloop.IOLoop.instance()
|
||||||
Subprocess(['./manage.py', 'celery', 'worker'])
|
Subprocess(['./manage.py', 'celery', 'worker', '-O', 'fair'])
|
||||||
ioloop.start()
|
ioloop.start()
|
||||||
else:
|
else:
|
||||||
http_server.bind(options['port'])
|
http_server.bind(options['port'])
|
||||||
http_server.start(0) # forks one process per cpu
|
http_server.start(0) # forks one process per cpu
|
||||||
ioloop = tornado.ioloop.IOLoop.current()
|
ioloop = tornado.ioloop.IOLoop.current()
|
||||||
Subprocess(['./manage.py', 'celery', 'worker'])
|
Subprocess(['./manage.py', 'celery', 'worker', '-O', 'fair'])
|
||||||
ioloop.start()
|
ioloop.start()
|
||||||
except KeyboardInterrupt:
|
except KeyboardInterrupt:
|
||||||
tornado.ioloop.IOLoop.instance().stop()
|
tornado.ioloop.IOLoop.instance().stop()
|
||||||
|
|||||||
@@ -57,6 +57,7 @@ INSTALLED_APPS = (
|
|||||||
'djcelery',
|
'djcelery',
|
||||||
'filetransfers',
|
'filetransfers',
|
||||||
'formtools',
|
'formtools',
|
||||||
|
'kombu.transport.django',
|
||||||
'mptt',
|
'mptt',
|
||||||
'pure_pagination',
|
'pure_pagination',
|
||||||
'rest_framework',
|
'rest_framework',
|
||||||
|
|||||||
@@ -34,5 +34,6 @@ python-gnupg==0.3.8
|
|||||||
python-magic==0.4.10
|
python-magic==0.4.10
|
||||||
pytz==2015.4
|
pytz==2015.4
|
||||||
|
|
||||||
|
redis==2.10.5
|
||||||
sh==1.11
|
sh==1.11
|
||||||
tornado==4.3
|
tornado==4.3
|
||||||
|
|||||||
Reference in New Issue
Block a user