-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathShiny Setup
46 lines (37 loc) · 1.39 KB
/
Shiny Setup
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
This begins after the server is running and you have configured the reverse proxy with nginx this sets up odbc & curl for apps like DBI and Plotly
The following set open permissions to the folder stated
$ sudo chmod 777 -R /srv/shiny-server/
Setup for remote connections - ODBC & HTTR -- https://cran.r-project.org/web/packages/odbc/readme/README.html
DBC - inital driver
$ sudo apt-get install unixodbc unixodbc-dev
Common options:
- SQL Server ODBC Drivers (Free TDS)
$ apt-get install tdsodbc
- PostgreSQL ODBC ODBC Drivers
$ apt-get install odbc-postgresql
- MySQL ODBC Drivers
$ apt-get install libmyodbc
- SQLite ODBC Drivers
$ apt-get install libsqliteodbc
Find latest curl
$ apt-cache search libcurl
Current Load for curl
$ sudo apt-get install libcurl4-openssl-dev
Find OpenSSL to get
$ apt-cache search libssl | grep SSL
Current Load for SSL
$ sudo apt-get install r-cran-openssl
Get WinSCP
Use google_compute_engine.ppk in .ssh under advanced
Use username for google in username
-- If you need to find user name it is in MetaData under VM Machines
Add directory to srv/shiny-server
Example: srv/shiny-server/NCAA will create: yourwebsite.com/NCAA
Add app and supporting files to folder
#Error Logs
/var/log/shiny-server/
#Useful Commands Checks
$ sudo systemctl start shiny-server
$ sudo systemctl stop shiny-server
$ sudo systemctl restart shiny-server
$ sudo systemctl status shiny-server