updated edit to use log files
This commit is contained in:
parent
17468643b6
commit
ebb0e6fdbe
1 changed files with 16 additions and 2 deletions
|
|
@ -535,7 +535,7 @@ def generate_gunicorn(make_link=True):
|
||||||
@task
|
@task
|
||||||
def edit(param='help'):
|
def edit(param='help'):
|
||||||
"""
|
"""
|
||||||
calls up mvim on the gunicorn conf file
|
calls up mvim on the gunicorn and django conf file
|
||||||
"""
|
"""
|
||||||
|
|
||||||
from .maintenance import edit as maintenance_edit
|
from .maintenance import edit as maintenance_edit
|
||||||
|
|
@ -569,6 +569,8 @@ def edit(param='help'):
|
||||||
django_path=django_path,
|
django_path=django_path,
|
||||||
project_branch=project_branch)
|
project_branch=project_branch)
|
||||||
|
|
||||||
|
file_debug_handler = configuration.logging.django.handlers.file_debug
|
||||||
|
|
||||||
# locations = ['gunicorn', 'gunicorn_link', 'gunicorn_build',
|
# locations = ['gunicorn', 'gunicorn_link', 'gunicorn_build',
|
||||||
# 'settings', 'local']
|
# 'settings', 'local']
|
||||||
locations = {
|
locations = {
|
||||||
|
|
@ -590,7 +592,19 @@ def edit(param='help'):
|
||||||
'local': {
|
'local': {
|
||||||
'path': settings_local_path,
|
'path': settings_local_path,
|
||||||
'desc': 'local settings file for django project',
|
'desc': 'local settings file for django project',
|
||||||
}
|
},
|
||||||
|
|
||||||
|
'server_log': {
|
||||||
|
'path': file_debug_handler.path.server,
|
||||||
|
'desc': 'django server log - handler name: %s' %
|
||||||
|
file_debug_handler.name.server,
|
||||||
|
},
|
||||||
|
|
||||||
|
'project_log': {
|
||||||
|
'path': file_debug_handler.path.project,
|
||||||
|
'desc': 'django project log - handler name: %s' %
|
||||||
|
file_debug_handler.name.project,
|
||||||
|
},
|
||||||
}
|
}
|
||||||
|
|
||||||
if param in locations.keys():
|
if param in locations.keys():
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue