Merge pull request #19823 from dvdksn/r-compose-watch-fix

r compose watch fix
This commit is contained in:
David Karlsson 2024-04-17 18:59:16 +02:00 committed by GitHub
commit 7cf218b75f
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 5 additions and 5 deletions

View File

@ -34,8 +34,6 @@ To try the connection between the Shiny application and the local database you h
+RUN src_db/ .
```
## Add a local database and persist data
You can use containers to set up local services, like a database. In this section, you'll update the `compose.yaml` file to define a database service and a volume to persist data.
@ -147,10 +145,10 @@ Use Compose Watch to automatically update your running Compose services as you
edit and save your code. For more details about Compose Watch, see [Use Compose
Watch](../../compose/file-watch.md).
Open your `compose.yaml` file in an IDE or text editor and then add the Compose
Watch instructions. The following is the updated `compose.yaml` file.
Lines 15 to 18 in the `compose.yaml` file contain properties that trigger Docker
to rebuild the image when a file in the current working directory is changed:
```yaml {hl_lines="15-18"}
```yaml {hl_lines="15-18",linenos=true}
services:
shiny-app:
build:

View File

@ -270,6 +270,8 @@
"lg:px-4",
"lg:w-full",
"link",
"lntable",
"lntd",
"m-auto",
"max-h-full",
"max-w-56",