lhyundeadsoul commented on issue #6543: flask.cli.NoAppException on fresh 
installation of superset via docker
URL: 
https://github.com/apache/incubator-superset/issues/6543#issuecomment-447874240
 
 
   this worked for me~
   add follow CODE to docker-entrypoint.sh within `development` statement
    
   ```
   export FLASK_APP=superset                                                    
                                                                            
   export FLASK_ENV=development  
   ```
   
   ```
   elif [ "$SUPERSET_ENV" = "development" ]; then                               
                                                                                
│superset_1  | 2018-12-17 14:52:24,405:INFO:werkzeug:30.30.78.136 - - 
[17/Dec/2018 14:52:24] "GET /static/appbuilder/select2/select2.js HTTP/1.1" 200 
-
   │superset_1  | 30.30.78.136 - - [17/Dec/2018 14:52:24] "GET 
/static/appbuilder/js/ab.js HTTP/1.1" 200 -
       superset worker &                                                        
                                                                                
│superset_1  | 2018-12-17 14:52:24,409:INFO:werkzeug:30.30.78.136 - - 
[17/Dec/2018 14:52:24] "GET /static/appbuilder/js/ab.js HTTP/1.1" 200 -
       # needed by superset runserver                                           
                                                                                
│superset_1  | 30.30.78.136 - - [17/Dec/2018 14:52:24] "GET 
/static/assets/dist/preamble.f45ca008.entry.js HTTP/1.1" 200 -
       (cd superset/assets/ && yarn && yarn run sync-backend)                   
                                                                                
│superset_1  | 2018-12-17 14:52:24,420:INFO:werkzeug:30.30.78.136 - - 
[17/Dec/2018 14:52:24] "GET /static/assets/dist/preamble.f45ca008.entry.js 
HTTP/1.1" 200
       (cd superset/assets/ && yarn run dev) &                                  
                                                                                
│-
       export FLASK_APP=superset                                                
                                                                                
│superset_1  | 30.30.78.136 - - [17/Dec/2018 14:52:28] "POST /login/ HTTP/1.1" 
302 -
       export FLASK_ENV=development                                             
                                                                                
│superset_1  | 2018-12-17 14:52:28,627:INFO:werkzeug:30.30.78.136 - - 
[17/Dec/2018 14:52:28] "POST /login/ HTTP/1.1" 302 -
       flask run -p 8088 --with-threads --reload --debugger --host=0.0.0.0
   ```

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


With regards,
Apache Git Services

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to