You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@airflow.apache.org by Lewis John McGibbney <le...@apache.org> on 2021/06/03 19:11:16 UTC

Advice on running local dev webserver

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

Re: Advice on running local dev webserver

Posted by Lewis John McGibbney <le...@apache.org>.
Excellent Sumit. Thank you

On 2021/06/04 06:17:09, Sumit Maheshwari <su...@gmail.com> wrote: 
> 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 admin@example.com
> 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 <le...@apache.org>
> 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
> >
> 

Re: Advice on running local dev webserver

Posted by Sumit Maheshwari <su...@gmail.com>.
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 admin@example.com
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 <le...@apache.org>
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
>