Skip to content

Commit a533226

Browse files
authored
Create how_to_deploy.md
1 parent 5ba6584 commit a533226

File tree

1 file changed

+46
-0
lines changed

1 file changed

+46
-0
lines changed

how_to_deploy.md

+46
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,46 @@
1+
# How to Launch the ML-Logger and dash.ml service
2+
3+
run:
4+
5+
```shell
6+
screen -S dash -dm bash start-dash.sh
7+
screen -S logger -dm bash start-logger.sh
8+
```
9+
10+
11+
to check if your server is running, you can inspect the running sessions (screen sessions) via
12+
13+
```shell
14+
screen -ls
15+
```
16+
17+
This should show something like this
18+
19+
```
20+
❯ screen -ls
21+
There are screens on:
22+
21009.zaku (11/01/24 19:13:19) (Detached) * does not apply to you
23+
3553.ngrok (11/01/24 18:49:20) (Detached)
24+
3548.dash (11/01/24 18:49:20) (Detached)
25+
3545.logger (11/01/24 18:49:20) (Detached)
26+
4 Sockets in /run/screen/S-ubuntu.
27+
```
28+
29+
and to inspect if the server is *ACTUALLY* running fine:
30+
31+
```shell
32+
screen -r logger
33+
```
34+
35+
```{admonition}
36+
..class:: warning
37+
If you are attached to the screensession, you will block the server.
38+
do NOT attach to a server's running session for too long.
39+
```
40+
41+
To detach from a running session, press <kbd>ctrl</kbd> + <kbd>a</kbd> and then followed with <kbd>d</kbd>.
42+
43+
do NOT press ctrl - D. It will kill the server.
44+
45+
46+
Ge Yang, built with <3

0 commit comments

Comments
 (0)