You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@airflow.apache.org by GitBox <gi...@apache.org> on 2019/04/18 05:08:47 UTC

[GitHub] [airflow] sumous opened a new pull request #5129: [AIRFLOW-4347] fix WEBSERVER_CONFIG when AIRFLOW_HOME=./

sumous opened a new pull request #5129: [AIRFLOW-4347] fix WEBSERVER_CONFIG when AIRFLOW_HOME=./
URL: https://github.com/apache/airflow/pull/5129
 
 
   Make sure you have checked _all_ steps below.
   
   ### Jira
   
   - [ ] My PR addresses the following [AIRFLOW-4347](https://issues.apache.org/jira/browse/AIRFLOW-4347) issues and references them in the PR title. 
   
   ### Description
   
   - [ ] Here are some details about my PR, including screenshots of any UI changes:
   I set AIRFLOW_HOME=./ 
   command **airflow initdb** is ok.
   And command **airflow webserver** got this:
   ```
   /Users/guoguo/Downloads/env_tmp/lib/python3.6/site-packages/flask_sqlalchemy/__init__.py:774: UserWarning: Neither SQLALCHEMY_DATABASE_URI nor SQLALCHEMY_BINDS is set. Defaulting SQLALCHEMY_DATABASE_URI to "sqlite:///:memory:".
     'Neither SQLALCHEMY_DATABASE_URI nor SQLALCHEMY_BINDS is set. '
   ```
   
   Airflow v1.10.3 code load RBAC WEBSERVER_CONFIG config in https://github.com/apache/airflow/blob/v1-10-stable/airflow/www_rbac/app.py#L51. 
   When **AIRFLOW_HOME=./**, then **settings.WEBSERVER_CONFIG=.//webserver_config.py**.  It will got the error path of RBAC_CODE_PATH+.//webserver_config.py
   
   
   

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


With regards,
Apache Git Services