Fixed default xds-agent port number and env var (XDS_AGENT_URL)
authorSebastien Douheret <sebastien.douheret@iot.bzh>
Mon, 4 Dec 2017 10:34:57 +0000 (11:34 +0100)
committerSebastien Douheret <sebastien.douheret@iot.bzh>
Tue, 5 Dec 2017 10:10:35 +0000 (11:10 +0100)
Signed-off-by: Sebastien Douheret <sebastien.douheret@iot.bzh>
config.json.in
lib/xdsserver/apiv1-folders.go
webapp/src/index.html

index 3dcc04a..ac2f891 100644 (file)
@@ -1,6 +1,6 @@
 {
     "webAppDir": "www",
-    "httpPort": "8010",
+    "httpPort": "8000",
     "shareRootDir": "${HOME}/.xds-server/projects",
     "logsDir": "/tmp/xds-server/logs",
     "sdkRootDir": "/xdt/sdk",
index cac83ab..009d2ce 100644 (file)
@@ -74,7 +74,7 @@ func (s *APIService) addFolder(c *gin.Context) {
                        return
                }
                fd.WriteString("# XDS project settings\n")
-               fd.WriteString("export XDS_SERVER_URL=" + c.Request.Host + "\n")
+               fd.WriteString("export XDS_AGENT_URL=" + c.Request.Host + "\n")
                fd.WriteString("export XDS_PROJECT_ID=" + newFld.ID + "\n")
                if newFld.DefaultSdk == "" {
                        sdks := s.sdks.GetAll()
index 45ac90d..3109d2e 100644 (file)
@@ -5,7 +5,6 @@
         XDS Server
     </title>
     <link rel="icon" type="image/x-icon" href="assets/favicon.ico">
-
     <link rel="stylesheet" href="font-awesome.min.css">
 
     <style>
 
     <h1 id="title">X(cross) Development System</h1>
 
-    <h2>Please start XDS agent on your machine<br> and
+    <h2>Please start XDS agent on your machine
+        <br> and
         <br> connect to XDS Dashboard
     </h2>
 
     <button id="dashbButton">
-        Try to connect to dashboard<br>
-        http://localhost:8000
+        Try to connect to dashboard
+        <br> http://localhost:8800
     </button>
     <script type="text/javascript">
         document.getElementById("dashbButton").onclick = function () {
-            location.href = "http://localhost:8000";
+            location.href = "http://localhost:8800";
         };
     </script>
     <i style="font:xx-small;">(URL may depend on your configuration)</i>
 
-    <br><br><br>
+    <br>
+    <br>
+    <br>
 
     <h2>For more information, please refer to XDS User's Guide:</h2>
     <ul>
         <li>
             <a href="http://docs.automotivelinux.org/docs/devguides/en/dev/reference/xds/part-1/1_install-client.html">
-                Install instructions <i class="fa fa-external-link" aria-hidden="true"></i>
+                Install instructions
+                <i class="fa fa-external-link" aria-hidden="true"></i>
             </a>
         </li>
         <li>
             <a href="http://docs.automotivelinux.org/docs/devguides/en/dev/#xcross-development-system-user's-guide">
-                Online User's guide <i class="fa fa-external-link" aria-hidden="true"></i>
+                Online User's guide
+                <i class="fa fa-external-link" aria-hidden="true"></i>
             </a>
         </li>
         <li>
             <a href="http://iot.bzh/download/public/2017/XDS/docs/XDS_UsersGuide.pdf">
-                User's guide (PDF file)  <i class="fa fa-external-link" aria-hidden="true"></i>
+                User's guide (PDF file)
+                <i class="fa fa-external-link" aria-hidden="true"></i>
             </a>
         </li>
     </ul>