Skip to content

Commit

Permalink
deploy: 761c028
Browse files Browse the repository at this point in the history
  • Loading branch information
janagoetze committed Aug 8, 2023
1 parent f9c8038 commit 4d01079
Show file tree
Hide file tree
Showing 5 changed files with 52 additions and 47 deletions.
4 changes: 3 additions & 1 deletion _sources/slurk_deployment.rst.txt
Original file line number Diff line number Diff line change
Expand Up @@ -92,8 +92,10 @@ should be persistent, so a volume for the data has to be mounted. This is the
restart: always
environment:
- POSTGRES_PASSWORD=SUPER_SECRET_PSQL_PASSWORD
- POSTGRES_USER=postgres
- PGDATA=/var/lib/postgresql/data/pgdata
volumes:
- ./postgres-data:/path/to/postgres/data
- ./postgres-data:/var/lib/postgresql/data/pgdata
slurk:
image: slurk/server
Expand Down
1 change: 1 addition & 0 deletions _static/pygments.css
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ span.linenos.special { color: #000000; background-color: #ffffc0; padding-left:
.highlight .cs { color: #408090; background-color: #fff0f0 } /* Comment.Special */
.highlight .gd { color: #A00000 } /* Generic.Deleted */
.highlight .ge { font-style: italic } /* Generic.Emph */
.highlight .ges { font-weight: bold; font-style: italic } /* Generic.EmphStrong */
.highlight .gr { color: #FF0000 } /* Generic.Error */
.highlight .gh { color: #000080; font-weight: bold } /* Generic.Heading */
.highlight .gi { color: #00A000 } /* Generic.Inserted */
Expand Down
88 changes: 44 additions & 44 deletions openapi.json
Original file line number Diff line number Diff line change
Expand Up @@ -956,7 +956,7 @@
"parameters": [
{
"in": "path",
"name": "connection_id",
"name": "session_id",
"required": true,
"schema": {
"type": "string",
Expand All @@ -965,7 +965,7 @@
},
{
"in": "path",
"name": "session_id",
"name": "connection_id",
"required": true,
"schema": {
"type": "string",
Expand Down Expand Up @@ -1979,20 +1979,20 @@
"parameters": [
{
"in": "path",
"name": "room_id",
"name": "cls",
"required": true,
"schema": {
"type": "integer",
"minimum": 0
"type": "string",
"minLength": 1
}
},
{
"in": "path",
"name": "cls",
"name": "room_id",
"required": true,
"schema": {
"type": "string",
"minLength": 1
"type": "integer",
"minimum": 0
}
}
]
Expand Down Expand Up @@ -2039,20 +2039,20 @@
"parameters": [
{
"in": "path",
"name": "room_id",
"name": "element",
"required": true,
"schema": {
"type": "integer",
"minimum": 0
"type": "string",
"minLength": 1
}
},
{
"in": "path",
"name": "element",
"name": "room_id",
"required": true,
"schema": {
"type": "string",
"minLength": 1
"type": "integer",
"minimum": 0
}
}
]
Expand Down Expand Up @@ -3664,7 +3664,7 @@
"parameters": [
{
"in": "path",
"name": "user_id",
"name": "room_id",
"required": true,
"schema": {
"type": "integer",
Expand All @@ -3673,7 +3673,7 @@
},
{
"in": "path",
"name": "room_id",
"name": "user_id",
"required": true,
"schema": {
"type": "integer",
Expand Down Expand Up @@ -4616,23 +4616,23 @@
"Scripts": {
"type": "object",
"properties": {
"incoming-text": {
"print-history": {
"default": null,
"nullable": true,
"type": [
"[string]",
"string"
],
"description": "Called when a text message is received"
"description": "Used for printing the chat history"
},
"submit-message": {
"incoming-image": {
"default": null,
"nullable": true,
"type": [
"[string]",
"string"
],
"description": "Called when a message is sent"
"description": "Called when an image is received"
},
"plain": {
"default": null,
Expand All @@ -4643,41 +4643,41 @@
],
"description": "Injected as a script file into the site"
},
"document-ready": {
"submit-message": {
"default": null,
"nullable": true,
"type": [
"[string]",
"string"
],
"description": "Called when site is fully loaded"
"description": "Called when a message is sent"
},
"print-history": {
"document-ready": {
"default": null,
"nullable": true,
"type": [
"[string]",
"string"
],
"description": "Used for printing the chat history"
"description": "Called when site is fully loaded"
},
"incoming-image": {
"typing-users": {
"default": null,
"nullable": true,
"type": [
"[string]",
"string"
],
"description": "Called when an image is received"
"description": "Called when state of currently typing users is changed"
},
"typing-users": {
"incoming-text": {
"default": null,
"nullable": true,
"type": [
"[string]",
"string"
],
"description": "Called when state of currently typing users is changed"
"description": "Called when a text message is received"
}
}
},
Expand Down Expand Up @@ -4834,22 +4834,22 @@
"Error": {
"type": "object",
"properties": {
"status": {
"message": {
"type": "string",
"description": "Error name"
"description": "Error message"
},
"code": {
"type": "integer",
"description": "Error code"
},
"errors": {
"type": "object",
"nullable": true,
"description": "Errors"
},
"message": {
"status": {
"type": "string",
"description": "Error message"
},
"code": {
"type": "integer",
"description": "Error code"
"description": "Error name"
}
}
},
Expand Down Expand Up @@ -6132,15 +6132,15 @@
"type": "string",
"description": "The attribute to be updated"
},
"value": {
"type": "string",
"description": "The value to be set for the given attribute"
},
"receiver_id": {
"type": "integer",
"default": null,
"nullable": true,
"description": "Receiver for which the attribute should be set"
},
"value": {
"type": "string",
"description": "The value to be set for the given attribute"
}
},
"required": [
Expand Down Expand Up @@ -6169,15 +6169,15 @@
"Class": {
"type": "object",
"properties": {
"class": {
"type": "string",
"description": "The class to be modified"
},
"receiver_id": {
"type": "integer",
"default": null,
"nullable": true,
"description": "Receiver for which the class should be modified"
},
"class": {
"type": "string",
"description": "The class to be modified"
}
},
"required": [
Expand Down
2 changes: 1 addition & 1 deletion searchindex.js

Large diffs are not rendered by default.

4 changes: 3 additions & 1 deletion slurk_deployment.html
Original file line number Diff line number Diff line change
Expand Up @@ -167,8 +167,10 @@ <h2><span class="section-number">9.3. </span>Example using docker-compose and Po
<span class="w"> </span><span class="nt">restart</span><span class="p">:</span><span class="w"> </span><span class="l l-Scalar l-Scalar-Plain">always</span>
<span class="w"> </span><span class="nt">environment</span><span class="p">:</span>
<span class="w"> </span><span class="p p-Indicator">-</span><span class="w"> </span><span class="l l-Scalar l-Scalar-Plain">POSTGRES_PASSWORD=SUPER_SECRET_PSQL_PASSWORD</span>
<span class="w"> </span><span class="p p-Indicator">-</span><span class="w"> </span><span class="l l-Scalar l-Scalar-Plain">POSTGRES_USER=postgres</span>
<span class="w"> </span><span class="p p-Indicator">-</span><span class="w"> </span><span class="l l-Scalar l-Scalar-Plain">PGDATA=/var/lib/postgresql/data/pgdata</span>
<span class="w"> </span><span class="nt">volumes</span><span class="p">:</span>
<span class="w"> </span><span class="p p-Indicator">-</span><span class="w"> </span><span class="l l-Scalar l-Scalar-Plain">./postgres-data:/path/to/postgres/data</span>
<span class="w"> </span><span class="p p-Indicator">-</span><span class="w"> </span><span class="l l-Scalar l-Scalar-Plain">./postgres-data:/var/lib/postgresql/data/pgdata</span>

<span class="w"> </span><span class="nt">slurk</span><span class="p">:</span>
<span class="w"> </span><span class="nt">image</span><span class="p">:</span><span class="w"> </span><span class="l l-Scalar l-Scalar-Plain">slurk/server</span>
Expand Down

0 comments on commit 4d01079

Please sign in to comment.