From 08e7965d73fc55e0be2bcdef5e127bf8c1229b45 Mon Sep 17 00:00:00 2001 From: Gerardo Arriaga Rendon Date: Fri, 14 Jan 2022 12:21:12 -0500 Subject: [PATCH] Change auto deployment links Co-Authored-By: Qiwen Yu --- src/api/status/public/js/build-log/api.js | 4 ++-- src/api/status/src/server.js | 2 +- tools/autodeployment/README.md | 4 ++-- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/src/api/status/public/js/build-log/api.js b/src/api/status/public/js/build-log/api.js index 267555a67e..54fb9220dc 100644 --- a/src/api/status/public/js/build-log/api.js +++ b/src/api/status/public/js/build-log/api.js @@ -1,5 +1,5 @@ -// http://localhost:1111/pages/build.html -> http://localhost:4000/:path -const autodeploymentUrl = (path) => `//${window.location.hostname}:4000/${path}`; +// http://localhost:1111/pages/build.html -> http://localhost/deploy/:path +const autodeploymentUrl = (path) => `//${window.location.hostname}/deploy/${path}`; export const checkBuildStatus = async () => { try { diff --git a/src/api/status/src/server.js b/src/api/status/src/server.js index ae4032b967..e0a57422e7 100644 --- a/src/api/status/src/server.js +++ b/src/api/status/src/server.js @@ -26,7 +26,7 @@ const satelliteOptions = { connectSrc: [ "'self'", '*.fontawesome.com', - `${host.replace(/(^\w+:|^)\/\//, '')}:4000`, + `${host.replace(/(^\w+:|^)\/\//, '')}/deploy`, '*.github.com', ], fontSrc: ["'self'", 'data:', 'https:', '*.fontawesome.com'], diff --git a/tools/autodeployment/README.md b/tools/autodeployment/README.md index e6c2c98d52..a461f9731f 100644 --- a/tools/autodeployment/README.md +++ b/tools/autodeployment/README.md @@ -14,8 +14,8 @@ is created on GitHub). There are also a few other routes you can use to get information about the auto deployment server: -- `GET :4000/status`: returns JSON data about the current status of the build. -- `GET :4000/log`: returns a real-time stream of current build log output, if any. +- `GET /deploy/status`: returns JSON data about the current status of the build. +- `GET /deploy/log`: returns a real-time stream of current build log output, if any. On staging you can go to http://dev.telescope.cdot.systems/status and http://dev.telescope.cdot.systems/log, and on production you can use