def runserver():
    """Runs the server using gunicorn"""
    os.environ.setdefault("DJANGO_SETTINGS_MODULE", "readonly.settings.local")
    with safe_cd(paths.project_paths.manage_root):
        project.venv_execute(
           'gunicorn',
           '--reload',
           '-b', '0.0.0.0:8000',
           '--access-logfile', '-',
           'readonly.wsgi',
       )
def rundocserver():
    """Runs the sphinx-autobuild server"""
    with safe_cd('docs'):
        project.venv_execute('sphinx-autobuild', '.', '_build/html')
Exemple #3
0
def rundocserver():
    """Runs the sphinx-autobuild server"""
    with safe_cd('docs'):
        project.venv_execute('sphinx-autobuild', '.', '_build/html')