You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@kylin.apache.org by "ASF GitHub Bot (Jira)" <ji...@apache.org> on 2020/03/11 07:23:00 UTC

[jira] [Commented] (KYLIN-4424) use static web server to help frontend development

    [ https://issues.apache.org/jira/browse/KYLIN-4424?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17056716#comment-17056716 ] 

ASF GitHub Bot commented on KYLIN-4424:
---------------------------------------

xiacongling commented on pull request #1158: KYLIN-4424 use static web server to help frontend development
URL: https://github.com/apache/kylin/pull/1158
 
 
   Add `grunt-contrib-connect` to start a static server and `grunt-contrib-watch` to trigger rebuild on source code changing. Additional middleware to fine tune the static web server:
   - grunt-connect-rewrite: solve context root problem
   - grunt-connect-proxy: proxy REST API to existing Kylin instance
   
   usage:
   ```
   cd /path/to/kylin/source/root/webapp
   grunt devserver
   ```
   a static web server will listen on `localhost:7071`
   
   note:
   in Gruntfile.js, proxy is set to `127.0.0.1:7070`. If your Kylin instance is started in docker with default settings, it will be okay. Otherwise, you may need to change the `host:port` to adjust to your environment.
 
----------------------------------------------------------------
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


> use static web server to help frontend development
> --------------------------------------------------
>
>                 Key: KYLIN-4424
>                 URL: https://issues.apache.org/jira/browse/KYLIN-4424
>             Project: Kylin
>          Issue Type: New Feature
>          Components: Tools, Build and Test
>            Reporter: Congling Xia
>            Assignee: Congling Xia
>            Priority: Major
>
> To verify frontend code changes, one need to build the source and re-deploy the target to Tomcat. It is not so efficient for frontend development. 
> We can start a static web server and proxy `/kylin/api/**` to the existing Kylin service and  automatically refresh the static web server after source code being changed. By doing so, we can make the frontend development easier.



--
This message was sent by Atlassian Jira
(v8.3.4#803005)