Fix some typos.
This commit is contained in:
parent
cf9b5168b4
commit
be1e5ed722
|
@ -41,7 +41,7 @@ def run(host, port):
|
||||||
sys.path.insert(0, BASE_DIR)
|
sys.path.insert(0, BASE_DIR)
|
||||||
click.echo(f'current python_path : {sys.path}')
|
click.echo(f'current python_path : {sys.path}')
|
||||||
|
|
||||||
uvicorn.run('halfapi.app:app',
|
uvicorn.run('halfapi.app:application',
|
||||||
host=host,
|
host=host,
|
||||||
port=int(port),
|
port=int(port),
|
||||||
log_level=log_level,
|
log_level=log_level,
|
||||||
|
|
|
@ -24,7 +24,7 @@ if len(PROJECT_NAME) == 0:
|
||||||
raise Exception('Need a project name as argument')
|
raise Exception('Need a project name as argument')
|
||||||
|
|
||||||
|
|
||||||
CONF_DIR = environ.get('HALFAPI_CONF_DIR', '/etc/halfapi')
|
CONF_DIR = environ.get('HALFAPI_CONF_DIR', '/etc/half_api')
|
||||||
|
|
||||||
config.read(filenames=[os.path.join(
|
config.read(filenames=[os.path.join(
|
||||||
CONF_DIR,
|
CONF_DIR,
|
||||||
|
@ -33,8 +33,8 @@ config.read(filenames=[os.path.join(
|
||||||
|
|
||||||
HOST = config.get('project', 'host')
|
HOST = config.get('project', 'host')
|
||||||
PORT = config.getint('project', 'port')
|
PORT = config.getint('project', 'port')
|
||||||
|
|
||||||
DB_NAME = f'halfapi_{PROJECT_NAME}'
|
DB_NAME = f'halfapi_{PROJECT_NAME}'
|
||||||
|
|
||||||
with open(config.get('project', 'secret')) as secret_file:
|
with open(config.get('project', 'secret')) as secret_file:
|
||||||
SECRET = secret_file.read()
|
SECRET = secret_file.read()
|
||||||
|
|
||||||
|
|
|
@ -46,7 +46,7 @@ def get_routes(domains=None):
|
||||||
return caller
|
return caller
|
||||||
|
|
||||||
app_routes = []
|
app_routes = []
|
||||||
for domaine_name in DOMAINS:
|
for domain_name in DOMAINS:
|
||||||
try:
|
try:
|
||||||
domain = next(Domain(name=domain_name).select())
|
domain = next(Domain(name=domain_name).select())
|
||||||
except StopIteration:
|
except StopIteration:
|
||||||
|
|
Loading…
Reference in New Issue