Skip to content

Commit

Permalink
Change auto deployment links
Browse files Browse the repository at this point in the history
Co-Authored-By: Qiwen Yu <[email protected]>
  • Loading branch information
JerryHue and Qiwen-Yu committed Jan 18, 2022
1 parent 4fa4461 commit 08e7965
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions src/api/status/public/js/build-log/api.js
Original file line number Diff line number Diff line change
@@ -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 {
Expand Down
2 changes: 1 addition & 1 deletion src/api/status/src/server.js
Original file line number Diff line number Diff line change
Expand Up @@ -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'],
Expand Down
4 changes: 2 additions & 2 deletions tools/autodeployment/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 08e7965

Please sign in to comment.