mirror of
https://github.com/evennia/evennia.git
synced 2026-03-16 21:06:30 +01:00
Fixed a bug in profile running
This commit is contained in:
parent
8e020bfb62
commit
d92a8fe96f
1 changed files with 2 additions and 2 deletions
|
|
@ -798,7 +798,7 @@ def server_operation(mode, service, interactive, profiler):
|
|||
# for convenience we don't start logging of
|
||||
# portal, only of server with this command.
|
||||
if profiler:
|
||||
cmdstr.append('--profile-server') # this is the common case
|
||||
cmdstr.append('--pserver') # this is the common case
|
||||
if interactive:
|
||||
cmdstr.append('--iserver')
|
||||
django.core.management.call_command('collectstatic', verbosity=1, interactive=False)
|
||||
|
|
@ -852,7 +852,7 @@ def main():
|
|||
help="Start given processes in interactive mode.")
|
||||
parser.add_argument('--init', action='store', dest="init", metavar="name",
|
||||
help="Creates a new game directory 'name' at the current location.")
|
||||
parser.add_argument('--profile', action='store_true', dest='profiler', default=False,
|
||||
parser.add_argument('--profiler', action='store_true', dest='profiler', default=False,
|
||||
help="Start given server component under the Python profiler.")
|
||||
parser.add_argument('--dummyrunner', nargs=1, action='store', dest='dummyrunner', metavar="N",
|
||||
help="Tests a running server by connecting N dummy players to it.")
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue