This is how I run webserver on local:

1. Checkout the code from GitHub
2. Create or activate a python3 virtualenv
3. Within Airflow dir, do a "python setup.py install" or "pip install -e ."
4. Run "./airflow/www/compile_assets.sh" to compile JS assets
5. If this is the first time you are running Airflow then need to do the
following as well:
    a. "airflow db init"
    b. "airflow db upgrade" (I think it might not be needed)
    c. airflow users create --username admin --firstname admin --lastname
admin --role Admin --email [email protected]
5. Run "airflow webserver", open http://localhost:8080/ & use admin:admin
to login.



On Fri, Jun 4, 2021 at 12:41 AM Lewis John McGibbney <[email protected]>
wrote:

> Hi dev@,
> I'm working on implementing a Apache Flagon UserALE JS analytics backend
> for Airflow cf. https://github.com/apache/airflow/pull/16230
> Specifically, in this thread I'm asking how to run the webserver locally
> so I can debug it. Ideally this does not involve deploying into Docker or
> anything yet. I was expecting to be able to run yarn dev from
> https://github.com/apache/airflow/tree/main/airflow/www but that doesn't
> seem to be working.
> Any ideas?
> Thank you
> lewismc
>

Reply via email to