* feat(api): assist peerJS server

* feat(api): install assist_server dependencies and start it with the API

* feat(api): assist: list live sessions

* feat(nginx): expose assist_server and block peers listing

* feat(api): merged sourcemaps reader and assist-server
feat(api): change image definition
feat(api): changed service start command
feat(utilities): created full server & image definition
feat(nginx): reset chalice configuration

* feat(utilities): utilities.yaml

* feat(nginx): utilities URL

* feat(utilities): utilities template

* feat(ci): Adding utilities GH action.

Signed-off-by: Rajesh Rajendran <rjshrjndrn@gmail.com>

* feat(utilities): build script

* feat(utilities): build script fix image name

* feat(utilities): tag and push image as latest

* feat(api): tag and push image as latest

* feat(api): extract peers host

* feat(api): fixed utilities URL

* feat(api): assist logs

* feat(api): assist: fixed peerjs URL

* feat(api): log peers URL

Co-authored-by: Rajesh Rajendran <rjshrjndrn@gmail.com>
This commit is contained in:
Kraiem Taha Yassine 2021-06-28 16:26:36 +02:00 committed by GitHub
parent 83abde63d3
commit 3f1228e576
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -22,6 +22,7 @@ SESSION_PROJECTION_COLS = """s.project_id,
def get_live_sessions(project_id):
project_key = projects.get_project_key(project_id)
print("requesting the list of connected peers")
print(environ["peers"] + f"/{project_key}")
connected_peers = requests.get(environ["peers"] + f"/{project_key}")
if connected_peers.status_code != 200:
print("!! issue with the peer-server")