Skip to content

Commit 5fd19ac

Browse files
author
Alvaro Farias
committed
🏗️ implement application factory pattern
1 parent 4d7cc5d commit 5fd19ac

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

run.py

+4-2
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,6 @@
1-
from app import app
1+
from app import create_app
2+
3+
app = create_app()
24

35
if __name__ == "__main__":
4-
app.run()
6+
app.run()

0 commit comments

Comments
 (0)