-
Notifications
You must be signed in to change notification settings - Fork 2.8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[ZEPPELIN-2190] Support custom web development port #2113
Conversation
I will test and give you feedback soon. |
zeppelin-web/webpack.config.js
Outdated
pattern: /WEB_PORT/ig, | ||
replacement: function (match, p1, offset, string) { | ||
return webPort; | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
MINOR: invalid indentation here.
zeppelin-web/webpack.config.js
Outdated
config.plugins.push(new InsertLiveReloadPlugin()) | ||
config.plugins.push( | ||
new InsertLiveReloadPlugin(), | ||
// string replace plugin instance |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
MINOR: i think we can remove this comment line.
LINE 285
@@ -24,7 +24,7 @@ function baseUrlSrv() { | |||
} | |||
} | |||
//Exception for when running locally via grunt | |||
if (port === 9000) { | |||
if (port === process.env.WEB_PORT) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We can remove if statement by modifying this like
var serverPort = process.env.SERVER_PORT || 8080;
var webPort = process.env.WEB_PORT || 9000;
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Oops. I wrote comments in different file. i meant webpack.config.js
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Sorry for my late response and I clearly understood your mentions!
Thanks @1ambda!
@1ambda Thanks for kind review! Let me update this soon! |
ping @soralee |
@1ambda Hi, I just updated as your comments. |
LGTM |
LGTM and merge to master if no further discussions. |
What is this PR for?
This PR is for support flexible port for custom
web application development
and update the structure of README.md document for the support variable.What type of PR is it?
[ Improvement | Documentation (README.md) ]
What is the Jira issue?
How should this be tested?
mvn clean package -DskipTests -pl 'zeppelin-web'
WEB_PORT
variable port underzeppelin-web
folderWEB_PORT=9999 yarn run dev
localhost:9999
on web browserScreenshots (if appropriate)
[after]
Questions:
zeppelin-web