Configure grpc proxy port (#973)

This commit is contained in:
Jonathan Zernik 2021-08-18 20:51:35 -07:00 committed by GitHub
parent 1275f8da6e
commit a2bb65a051
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 5 additions and 2 deletions

View file

@ -5,7 +5,7 @@ clean:
rundev: gen-protos
npm install
REACT_APP_SERVER_PORT=12994 npm start
REACT_APP_SERVER_PORT=8080 npm start
build: gen-protos
npm install

View file

@ -131,7 +131,9 @@ const SERVER_PORT = process.env.REACT_APP_SERVER_PORT || window.location.port;
export let web_host_port = window.location.protocol + '//' + window.location.hostname + ':' + SERVER_PORT;
console.log(SqueakAdminClient);
var client = new SqueakAdminClient('http://' + window.location.hostname + ':15081')
const RPC_SERVER_PORT = process.env.REACT_APP_SERVER_PORT || 15081;
console.log("Using RPC_SERVER_PORT: " + RPC_SERVER_PORT);
var client = new SqueakAdminClient('http://' + window.location.hostname + ':' + RPC_SERVER_PORT);
function handleErrorResponse(response, route, handleError) {
@ -197,6 +199,7 @@ export function getTimelineSqueakDisplaysRequest(handleResponse) {
// handleResponse(response.getSqueakDisplayEntriesList());
// }
// );
console.log("Using new version of getTimelineSqueakDisplaysRequest");
var getTimelineSqueakDisplaysRequest = new GetTimelineSqueakDisplaysRequest()
client.getTimelineSqueakDisplays(getTimelineSqueakDisplaysRequest, {}, (err, response) => {
handleResponse(response.getSqueakDisplayEntriesList());