Skip to content

Commit 4fc7529

Browse files
committed
rename the pysogs command to start-sogs-uwsgi
1 parent 4b6e6df commit 4fc7529

File tree

3 files changed

+9
-5
lines changed

3 files changed

+9
-5
lines changed

contrib/docker/DockerFile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ RUN echo sogs-standalone session-pysogs/url-http string http://example.com | deb
1818
RUN apt-get install -y sogs-standalone
1919

2020
# just add an alias to the pysogs start command
21-
RUN echo '#!/bin/bash\n/usr/bin/uwsgi --uid _loki --ini /etc/sogs/uwsgi-standalone.ini' > /usr/bin/pysogs && \
22-
chmod +x /usr/bin/pysogs
21+
RUN echo '#!/bin/bash\n/usr/bin/uwsgi --uid _loki --ini /etc/sogs/uwsgi-standalone.ini' > /usr/bin/start-sogs-uwsgi && \
22+
chmod +x /usr/bin/start-sogs-uwsgi
2323

2424
EXPOSE 80

contrib/docker/DockerFile.dev

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,8 +20,8 @@ RUN apt -y install python3-oxenmq python3-oxenc python3-pyonionreq python3-color
2020

2121

2222
# just add an alias to the pysogs-start command
23-
RUN echo '#!/bin/bash\nuwsgi contrib/docker/uwsgi-sogs-docker.ini' > /usr/bin/pysogs && \
24-
chmod +x /usr/bin/pysogs
23+
RUN echo '#!/bin/bash\nuwsgi contrib/docker/uwsgi-sogs-docker.ini' > /usr/bin/start-sogs-uwsgi && \
24+
chmod +x /usr/bin/start-sogs-uwsgi
2525

2626

2727
RUN mkdir session-pysogs

contrib/docker/Readme.md

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ sudo docker run -i -p 8080:80 -v $PWD:/session-pysogs -t pysogs-dev:latest
5959
To start the pysogs once you have a shell in the container do:
6060

6161
```
62-
pysogs
62+
start-sogs-uwsgi
6363
```
6464

6565
To create a room once you have a shell inside the container do
@@ -68,4 +68,8 @@ To create a room once you have a shell inside the container do
6868
python3 -msogs --add-room fishing --name "Fish Talk"
6969
```
7070

71+
To play with Session and your own development pysogs you need to host you pysogs on a publicly accessible ip.
72+
So this docker needs to be deployed on a server of some sort. Then, you can open the folder remotely (with the ssh vscode extension) or edit the files directly over ssh.
73+
Using the vscode extension, you can also have a shell opened on the remote host, and so be able to quickly stop and restart the `start-sogs-uwsgi` command inside the container on code changes.
74+
7175
More doc at https://github.com/oxen-io/session-pysogs/blob/dev/administration.md#sogs-administration

0 commit comments

Comments
 (0)