mirror of
https://github.com/ArchiveBox/ArchiveBox
synced 2024-11-23 04:33:11 +00:00
check system config later in startup process to allow version to run during docker build
This commit is contained in:
parent
6b7dfa773e
commit
25e0cba0cc
1 changed files with 2 additions and 2 deletions
|
@ -845,6 +845,8 @@ def check_data_folder(out_dir: Optional[str]=None, config: ConfigDict=CONFIG) ->
|
||||||
|
|
||||||
|
|
||||||
def setup_django(out_dir: str=None, check_db=False, config: ConfigDict=CONFIG) -> None:
|
def setup_django(out_dir: str=None, check_db=False, config: ConfigDict=CONFIG) -> None:
|
||||||
|
check_system_config()
|
||||||
|
|
||||||
output_dir = out_dir or config['OUTPUT_DIR']
|
output_dir = out_dir or config['OUTPUT_DIR']
|
||||||
|
|
||||||
assert isinstance(output_dir, str) and isinstance(config['PYTHON_DIR'], str)
|
assert isinstance(output_dir, str) and isinstance(config['PYTHON_DIR'], str)
|
||||||
|
@ -862,5 +864,3 @@ def setup_django(out_dir: str=None, check_db=False, config: ConfigDict=CONFIG) -
|
||||||
f'No database file {SQL_INDEX_FILENAME} found in OUTPUT_DIR: {config["OUTPUT_DIR"]}')
|
f'No database file {SQL_INDEX_FILENAME} found in OUTPUT_DIR: {config["OUTPUT_DIR"]}')
|
||||||
except KeyboardInterrupt:
|
except KeyboardInterrupt:
|
||||||
raise SystemExit(2)
|
raise SystemExit(2)
|
||||||
|
|
||||||
check_system_config()
|
|
||||||
|
|
Loading…
Reference in a new issue