Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

seva-launcher: Migrate to a different port #15

Merged
merged 1 commit into from
Jul 10, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -43,8 +43,8 @@ amd64/x86_64.

Access the web interface using either:

- The on device interface with `http://localhost/`
- The remote interface with `http://<device-ip-or-hostname>/`
- The on device interface with `http://localhost:8007/`
- The remote interface with `http://<device-ip-or-hostname>:8007/`

The store page is currently set to use the locally hosted design gallery page
provided by the [seva-design-gallery
Expand Down Expand Up @@ -72,7 +72,7 @@ found, the command is ignored. If it is found then the command is send to
seva-launcher instructing it to fetch the associated files.

The result of this fetch is then relayed back to the web interface through a
websocket at `http://localhost:8000/ws`. Seva Control Center can only interact
websocket at `http://localhost:8007/ws`. Seva Control Center can only interact
with seva-launcher in this manner.

### Why is this so complicated?
Expand Down
6 changes: 3 additions & 3 deletions seva-launcher/seva-launcher.go
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ var docker_browser_path = "ghcr.io/texasinstruments/seva-browser:" + docker_brow
// Link to Repository which has docker-compose file for each demo
var store_url = "https://raw.githubusercontent.com/TexasInstruments/seva-apps/main"

var addr = flag.String("addr", "0.0.0.0:8000", "http service address")
var addr = flag.String("addr", "0.0.0.0:8007", "http service address")
var no_browser = flag.Bool("no-browser", false, "do not launch browser")
var docker_browser = flag.Bool("docker-browser", false, "force use of docker browser")
var http_proxy = flag.String("http_proxy", "", "use to set http proxy")
Expand Down Expand Up @@ -77,7 +77,7 @@ func launch_browser() {
if *docker_browser {
go launch_docker_browser()
} else {
err := open.Start("http://localhost:8000/#/")
err := open.Start("http://localhost:8007/#/")
if err != nil {
log.Println("Host browser not detected, trying to load & launch seva-browser packaged in default image")
go launch_docker_browser()
Expand All @@ -99,7 +99,7 @@ func launch_docker_browser() {
"-v", xdg_runtime_dir+":/tmp",
"-u", "user",
"ghcr.io/texasinstruments/seva-browser:"+docker_browser_tag,
"http://localhost:8000/#/",
"http://localhost:8007/#/",
)
output_strings := strings.Split(strings.TrimSpace(string(output)), "\n")
container_id_list[0] = output_strings[len(output_strings)-1]
Expand Down
2 changes: 1 addition & 1 deletion seva-web/lib/websocket.dart
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import 'url_builder.dart';
// setup the websocket
final host_name = html.window.location.hostname;
var channel = WebSocketChannel.connect(
Uri.parse('ws://${host_name}:8000/ws'),
Uri.parse('ws://${host_name}:8007/ws'),
);
Stream stream = channel.stream.asBroadcastStream();

Expand Down
Loading