Initialize app at runtime instead of import time (#4024)
This commit is contained in:
committed by
GitHub
parent
f7e68141eb
commit
0efae234ab
@@ -30,7 +30,7 @@ if __name__ == "__main__":
|
||||
)
|
||||
|
||||
uvicorn.run(
|
||||
"skyvern.forge.api_app:app",
|
||||
"skyvern.forge.api_app:create_api_app",
|
||||
host="0.0.0.0",
|
||||
port=port,
|
||||
log_level="info",
|
||||
@@ -39,4 +39,5 @@ if __name__ == "__main__":
|
||||
f"{temp_path_for_excludes}/**/*.py",
|
||||
f"{artifact_path_for_excludes}/{settings.ENV}/**/scripts/**/**/*.py",
|
||||
],
|
||||
factory=True,
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user