Skip to content

Commit

Permalink
"Changed deployment to use different port"
Browse files Browse the repository at this point in the history
  • Loading branch information
Saipranav-Kotamreddy committed May 28, 2024
1 parent 643cdb4 commit 7aca730
Show file tree
Hide file tree
Showing 10 changed files with 13 additions and 11 deletions.
6 changes: 3 additions & 3 deletions build/asset-manifest.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"files": {
"main.css": "/static/css/main.a663b81a.css",
"main.js": "/static/js/main.ecb84410.js",
"main.js": "/static/js/main.a439ca38.js",
"static/js/1927.8bd9ca2b.chunk.js": "/static/js/1927.8bd9ca2b.chunk.js",
"static/js/7590.4eeecba0.chunk.js": "/static/js/7590.4eeecba0.chunk.js",
"static/js/6725.7c418f57.chunk.js": "/static/js/6725.7c418f57.chunk.js",
Expand Down Expand Up @@ -73,7 +73,7 @@
"static/media/defaultProfileImage.png": "/static/media/defaultProfileImage.6c9586e38b84a1d6a118.png",
"index.html": "/index.html",
"main.a663b81a.css.map": "/static/css/main.a663b81a.css.map",
"main.ecb84410.js.map": "/static/js/main.ecb84410.js.map",
"main.a439ca38.js.map": "/static/js/main.a439ca38.js.map",
"1927.8bd9ca2b.chunk.js.map": "/static/js/1927.8bd9ca2b.chunk.js.map",
"7590.4eeecba0.chunk.js.map": "/static/js/7590.4eeecba0.chunk.js.map",
"6725.7c418f57.chunk.js.map": "/static/js/6725.7c418f57.chunk.js.map",
Expand Down Expand Up @@ -145,6 +145,6 @@
},
"entrypoints": [
"static/css/main.a663b81a.css",
"static/js/main.ecb84410.js"
"static/js/main.a439ca38.js"
]
}
2 changes: 1 addition & 1 deletion build/index.html
Original file line number Diff line number Diff line change
@@ -1 +1 @@
<!doctype html><html lang="en"><head><meta charset="utf-8"/><link rel="apple-touch-icon" sizes="180x180" href="/apple-touch-icon.png"><link rel="icon" type="image/png" sizes="32x32" href="/favicon-32x32.png"><link rel="icon" type="image/png" sizes="16x16" href="/favicon-16x16.png"><link rel="manifest" href="/site.webmanifest"><meta name="msapplication-TileColor" content="#da532c"><meta name="theme-color" content="#ffffff"><meta name="viewport" content="width=device-width,initial-scale=1"/><meta name="theme-color" content="#000000"/><meta name="description" content="A visualizer for ResilientDb for DDS 265 Distributed Data Systems"/><meta name="author" description="aunshx"/><link rel="stylesheet" href="https://unpkg.com/aos@next/dist/aos.css"/><title>ResView</title><script defer="defer" src="/static/js/main.ecb84410.js"></script><link href="/static/css/main.a663b81a.css" rel="stylesheet"></head><body><noscript>You need to enable JavaScript to run this app.</noscript><div id="root"></div><script src="https://unpkg.com/aos@next/dist/aos.js"></script><script>AOS.init({delay:0,duration:600,offset:10})</script></body></html>
<!doctype html><html lang="en"><head><meta charset="utf-8"/><link rel="apple-touch-icon" sizes="180x180" href="/apple-touch-icon.png"><link rel="icon" type="image/png" sizes="32x32" href="/favicon-32x32.png"><link rel="icon" type="image/png" sizes="16x16" href="/favicon-16x16.png"><link rel="manifest" href="/site.webmanifest"><meta name="msapplication-TileColor" content="#da532c"><meta name="theme-color" content="#ffffff"><meta name="viewport" content="width=device-width,initial-scale=1"/><meta name="theme-color" content="#000000"/><meta name="description" content="A visualizer for ResilientDb for DDS 265 Distributed Data Systems"/><meta name="author" description="aunshx"/><link rel="stylesheet" href="https://unpkg.com/aos@next/dist/aos.css"/><title>ResView</title><script defer="defer" src="/static/js/main.a439ca38.js"></script><link href="/static/css/main.a663b81a.css" rel="stylesheet"></head><body><noscript>You need to enable JavaScript to run this app.</noscript><div id="root"></div><script src="https://unpkg.com/aos@next/dist/aos.js"></script><script>AOS.init({delay:0,duration:600,offset:10})</script></body></html>
2 changes: 1 addition & 1 deletion build/static/css/main.a663b81a.css.map

Large diffs are not rendered by default.

3 changes: 3 additions & 0 deletions build/static/js/main.a439ca38.js

Large diffs are not rendered by default.

1 change: 1 addition & 0 deletions build/static/js/main.a439ca38.js.map

Large diffs are not rendered by default.

3 changes: 0 additions & 3 deletions build/static/js/main.ecb84410.js

This file was deleted.

1 change: 0 additions & 1 deletion build/static/js/main.ecb84410.js.map

This file was deleted.

3 changes: 2 additions & 1 deletion src/Components/Pages/Visualizer/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,8 @@ const Visualizer = () => {
for (let i = 0; i < 4; i++) {
//let port= parseInt(process.env.REACT_APP_DEFAULT_LOCAL_PORT)+i
//let url = process.env.REACT_APP_DEFAULT_LOCAL + String(port) + process.env.REACT_APP_REPLICA_STATUS_EP
let port= parseInt(18501)+i
//let port= parseInt(18501)+i
let port= parseInt(22501)+i
let url = "http://localhost:" + String(port) + "/get_status"
let promise = fetchWithTimeout(url)
.then(response => {
Expand Down
3 changes: 2 additions & 1 deletion src/Socket/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,8 @@ export const WebSocket = ({onMessage}) => {
// Make API call
//let port = parseInt(process.env.REACT_APP_DEFAULT_LOCAL_PORT) + replicaPort
//const response = await fetch(process.env.REACT_APP_DEFAULT_LOCAL + String(port) + process.env.REACT_APP_SOCKET_URL_EP);
let port = parseInt(18501) + replicaPort
//let port = parseInt(18501) + replicaPort
let port = parseInt(25501) + replicaPort
const response = await fetch("http://localhost:" + String(port) + "/consensus_data");
const newData = await response.json();
// Update state with new data
Expand Down

0 comments on commit 7aca730

Please sign in to comment.