Commit b63b7765 authored by Midoux Cedric's avatar Midoux Cedric
Browse files

'Shiny server Installation' in README.md

No related merge requests found
Showing with 37 additions and 3 deletions
+37 -3
Development of an R-shiny application to quickly and easily analyze 16S data.
# Shiny Server
Easy16S application actualy works on a Open Source Shiny Server.
This is `/etc/shiny-server/shiny-server.conf` :
# Shiny server Installation
Easy16S application actually works on a Open Source Shiny Server.
For shiny server installation, we follow the [Rstudio Guide](http://docs.rstudio.com/shiny-server/).
1. Install and update R, the shiny R package and all the necessary packages
```bash
sudo yum install R
sudo su - -c "R -e \"install.packages('shiny', repos='https://cran.rstudio.com/')\""
sudo su - -c "R -e \"install.packages('rmarkdown')\""
```
2. [Download Shiny Server](https://www.rstudio.com/products/shiny/download-server/)
```bash
wget https://download3.rstudio.org/centos6.3/x86_64/shiny-server-1.5.9.923-x86_64.rpm
```
3. Install it with `gdebi` or `yum` according to your OS
```bash
sudo yum install --nogpgcheck shiny-server-1.5.9.923-x86_64.rpm
```
If necessary, you can stoping or starting the shiny server
```bash
sudo systemctl start shiny-server
sudo systemctl stop shiny-server
```
4. Configure shiny server
For example, this is our `/etc/shiny-server/shiny-server.conf` :
```bash
# Instruct Shiny Server to run applications as the user "shiny"
run_as shiny;
......@@ -26,3 +54,9 @@ server {
}
}
```
5. Deploy application with a `git clone` in `/srv/shiny-server/`
```bash
cd /srv/shiny-server/
git clone git@gitlab-ssh.irstea.fr:cedric.midoux/easy16S.git
```
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment