sanghyuk-vessl's picture
Add vessl-docs
76d9c4f verified
metadata
title: Run a server application
version: EN

Port Configuration

Under Port setting of Create New Workspace page, you can expose a server application running in a VESSL workspace instance on a configured port.

<img style={{ borderRadius: '0.5rem' }} src="/images/workspace/app/1_metadata.png" />

Before editing your port settings, you should stop your workspace.>

<img style={{ borderRadius: '0.5rem' }} src="/images/workspace/app/2_http.png" />

Running a Server Application

You can run a simple server application like the following Python file server.

vessl@workspace-9fph3e8n3arx-0:~$ ls
mnist

vessl@workspace-9fph3e8n3arx-0:~$ ls mnist
test.csv  train.csv

vessl@workspace-9fph3e8n3arx-0:~$ python -m http.server 8080
Serving HTTP on 0.0.0.0 port 8080 (http://0.0.0.0:8080/) ...

You can access the running server application by clicking the port number under METADATA.

<img style={{ borderRadius: '0.5rem' }} src="/images/workspace/app/3_metadata.png" />

<img style={{ borderRadius: '0.5rem' }} src="/images/workspace/app/4_app.png" />