|
@@ -94,14 +94,14 @@ def set_conf(name, args):
|
94
|
94
|
config['lodel2.webui']['listen_address'] = str(args.listen_address)
|
95
|
95
|
if args.static_url is not None:
|
96
|
96
|
config['lodel2.webui']['static_url'] = str(args.static_url)
|
|
97
|
+ if args.uwsgi_workers is not None:
|
|
98
|
+ config['lodel2.webui']['uwsgi_workers'] = str(args.uwsgi_workers)
|
97
|
99
|
else: #interface is python
|
98
|
100
|
if args.listen_port is not None or args.listen_address is not None:
|
99
|
101
|
logging.error("Listen port and listen address will not being set. \
|
100
|
102
|
Selected interface is not the web iterface")
|
101
|
103
|
if 'lodel.webui' in config:
|
102
|
104
|
del(config['lodel2.webui'])
|
103
|
|
- if args.uwsgi_workers is not None:
|
104
|
|
- config['lodel2.webui']['uwsgi_workers'] = int(args.uwsgi_workers)
|
105
|
105
|
|
106
|
106
|
if args.datasource_connectors is not None:
|
107
|
107
|
darg = args.datasource_connectors
|
|
@@ -491,8 +491,8 @@ to 1 instance")
|
491
|
491
|
help="Select the password name to connect the datasource")
|
492
|
492
|
confs.add_argument('--db_name', type=str,
|
493
|
493
|
help="Select the database name on which datasource will be connect")
|
494
|
|
- confs.add_argument('-p', '--uwsgi-workers', type=str, default='2',
|
495
|
|
- help="Number of workers to spawn at the start of uwsgi")
|
|
494
|
+ confs.add_argument('--uwsgi-workers', type=int, default='2',
|
|
495
|
+ metavar = 'N', help="Number of workers to spawn at the start of uwsgi")
|
496
|
496
|
return parser
|
497
|
497
|
|
498
|
498
|
if __name__ == '__main__':
|