Skip to content

Commit

Permalink
Update "Testing locally"
Browse files Browse the repository at this point in the history
  • Loading branch information
94rain committed Feb 22, 2024
1 parent 36954b6 commit 8e4ce3f
Showing 1 changed file with 5 additions and 7 deletions.
12 changes: 5 additions & 7 deletions doc/apps/shiny-r.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,18 +15,16 @@ In the `install.R` file, add all the dependencies that you need for your applica

## Testing locally

To test your app, you can use `docker` locally:
To test your Shiny app, you can run the following commands locally:

```sh
# build the docker image
docker build . -t shiny-r
# Install dependencies
Rscript install.R

# run it
docker run -p 5000:80 shiny-r
# Start the application
Rscript startApp.R
```

Now, open [http://0.0.0.0:5000/](http://0.0.0.0:5000/) to see your app.


## Deploy

Expand Down

0 comments on commit 8e4ce3f

Please sign in to comment.