All checks were successful
CI / Lint & Format (push) Successful in 22s
CI / Security Scan (push) Successful in 20s
CI / Memory Leak Check (push) Successful in 19s
CI / SBOM Generation (push) Successful in 19s
CI / Security Tests (push) Successful in 25s
CI / Unit Tests (push) Successful in 33s
16 lines
493 B
Python
Executable File
16 lines
493 B
Python
Executable File
#!/usr/bin/env python3
|
|
"""Development server entry point."""
|
|
|
|
import argparse
|
|
|
|
from app import create_app
|
|
|
|
if __name__ == "__main__":
|
|
parser = argparse.ArgumentParser(description="FlaskPaste dev server")
|
|
parser.add_argument("--host", default="0.0.0.0", help="Host to bind to") # noqa: S104
|
|
parser.add_argument("--port", type=int, default=5000, help="Port to bind to")
|
|
args = parser.parse_args()
|
|
|
|
app = create_app("development")
|
|
app.run(host=args.host, port=args.port)
|