diff --git a/cmd/ui/v1alpha3/main.go b/cmd/ui/v1alpha3/main.go
index a063c111370..d299c6f40f6 100644
--- a/cmd/ui/v1alpha3/main.go
+++ b/cmd/ui/v1alpha3/main.go
@@ -3,10 +3,9 @@ package main
import (
"flag"
"fmt"
+ "log"
"net/http"
- "k8s.io/klog"
-
ui "github.com/kubeflow/katib/pkg/ui/v1alpha3"
)
@@ -23,7 +22,7 @@ func main() {
flag.Parse()
kuh := ui.NewKatibUIHandler()
- klog.Infof("Serving the frontend dir %s", *buildDir)
+ log.Printf("Serving the frontend dir %s", *buildDir)
frontend := http.FileServer(http.Dir(*buildDir))
http.Handle("/katib/", http.StripPrefix("/katib/", frontend))
@@ -43,7 +42,7 @@ func main() {
http.HandleFunc("/katib/fetch_trial_templates/", kuh.FetchTrialTemplates)
http.HandleFunc("/katib/update_template/", kuh.AddEditDeleteTemplate)
- klog.Infof("Serving at %s:%s", *host, *port)
+ log.Printf("Serving at %s:%s", *host, *port)
if err := http.ListenAndServe(fmt.Sprintf("%s:%s", *host, *port), nil); err != nil {
panic(err)
}
diff --git a/pkg/ui/v1alpha3/frontend/package.json b/pkg/ui/v1alpha3/frontend/package.json
index 076bda7f4f8..db1467643af 100644
--- a/pkg/ui/v1alpha3/frontend/package.json
+++ b/pkg/ui/v1alpha3/frontend/package.json
@@ -128,8 +128,8 @@
"node"
],
"watchPlugins": [
- "/home/akado2009/go/src/github.com/kubeflow/katib/pkg/ui/frontend/node_modules/jest-watch-typeahead/filename.js",
- "/home/akado2009/go/src/github.com/kubeflow/katib/pkg/ui/frontend/node_modules/jest-watch-typeahead/testname.js"
+ "./node_modules/jest-watch-typeahead/filename.js",
+ "./node_modules/jest-watch-typeahead/testname.js"
]
},
"babel": {
diff --git a/pkg/ui/v1alpha3/frontend/scripts/start.js b/pkg/ui/v1alpha3/frontend/scripts/start.js
index 99bb4ab3869..06bfbb12110 100644
--- a/pkg/ui/v1alpha3/frontend/scripts/start.js
+++ b/pkg/ui/v1alpha3/frontend/scripts/start.js
@@ -113,12 +113,13 @@ checkBrowsers(paths.appPath, isInteractive)
if (isInteractive) {
clearConsole();
}
- console.log(chalk.cyan('Starting the development server...\n'));
+ console.log(chalk.cyan(`Starting the development server on ${HOST}:${port}...\n`));
openBrowser(urls.localUrlForBrowser);
});
- ['SIGINT', 'SIGTERM'].forEach(function(sig) {
+ ['SIGINT', 'SIGTERM', 'SIGQUIT'].forEach(function(sig) {
process.on(sig, function() {
+ console.log("Terminating");
devServer.close();
process.exit();
});
diff --git a/pkg/ui/v1alpha3/frontend/src/components/HP/Create/HPParameters.jsx b/pkg/ui/v1alpha3/frontend/src/components/HP/Create/HPParameters.jsx
index 43d658359b8..efcb674eacc 100644
--- a/pkg/ui/v1alpha3/frontend/src/components/HP/Create/HPParameters.jsx
+++ b/pkg/ui/v1alpha3/frontend/src/components/HP/Create/HPParameters.jsx
@@ -62,7 +62,7 @@ const SectionInTypography = (name, classes) => {