{"repo":"nanorepublica/django-prodserver","free":true,"listed":false,"github":"https://github.com/nanorepublica/django-prodserver","clone":"git clone https://github.com/nanorepublica/django-prodserver.git","description":"Django Management Command for running production processes","language":"Python","stars":61,"topics":["django","management-command"],"license":"MIT","category":"api-integrations-sdks","readme_excerpt":"Django prodserver --- Documentation : https://django-prodserver.readthedocs.io Source Code : https://github.com/nanorepublica/django-prodserver --- A management command to start production servers/workers with a consistent interface Installation Install this via pip (or your favourite package manager): pip install django-prodserver Add the app to your INSTALLED APPS : Configuration Add the PRODUCTION PROCESSES setting to your settings.py . Below shows an example with a web process and worker process defined. The comments show other available backend processes that are available to use. Usage Once the PRODUCTION PROCESSES setting has been configured you can then start the processes. Use the server command to start a web/ASGI/WSGI process: Use the worker command to start a background task worker process: Both commands read from the same PRODUCTION PROCESSES setting; server only accepts server backends and worker only accepts worker backends. If you point one at the wrong kind of backend it will tell you which command to use instead. Run either command with --list to see the configured process names. Deprecated: python manage.py prodserver continues to work as an alias but is deprecated and will be removed in django-prodserver 4.0.0. Use python manage.py server instead. Creating a new backend. Creating a backend is fairly simple. Subclass BaseServerBackend (for a web server) or BaseWorkerBackend (for a background task worker) from django prodserver.backends.base , then implement","default_branch":null,"files":null,"tree":[],"storefront":"/r/nanorepublica","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/nanorepublica/django-prodserver/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}