Working version of playwright
This commit is contained in:
10
src/main.py
10
src/main.py
@@ -1,6 +1,7 @@
|
||||
# global layout
|
||||
import logging.config
|
||||
|
||||
import click
|
||||
import yaml
|
||||
from fasthtml.common import *
|
||||
|
||||
@@ -306,10 +307,11 @@ def not_found(path: str, session=None):
|
||||
setup_toasts(app)
|
||||
|
||||
|
||||
def main():
|
||||
logger.info(f" Starting FastHTML server on http://localhost:{APP_PORT}")
|
||||
serve(port=APP_PORT)
|
||||
|
||||
@click.command()
|
||||
@click.option('--port', default=APP_PORT, help='Port to run the server on')
|
||||
def main(port):
|
||||
logger.info(f" Starting FastHTML server on http://localhost:{port}")
|
||||
serve(port=port)
|
||||
|
||||
if __name__ == "__main__":
|
||||
# Start your application
|
||||
|
||||
Reference in New Issue
Block a user