Hi,
I am trying to use the auth-module and log-file from pn.serve to be invoked with python main_app.py.
the auth.py is copied from
If I run the app
import panel as pn
def get_page1():
return 'hola'
get_page1().servable()
with
panel serve --show --autoreload main_app.py --rest-session-info -session-history=-1 --log-file='log_panel' --auth-module=auth.py
It works perfectly the auth module and the log file is written to the specified file. If i use the pn.serve running inside a python script with âpython main_app.pyâ
import panel as pn
def get_page1():
return 'hola'
pn.serve({'app11':get_page1},show=True,autoreload=True,session_history=-1,
port=5007,address='147.47.240.86',host="0.0.0.0",allow_websocket_origin=['*'],
rest_session_info=True,auth_module='auth.py', log_file='log_panel')
the app runs, but the auth and the log file do not work.
If someone is using them I would be very gratefull for the help.