I
am a longtime R and shiny user, but a first time shiny-server user
with little experience. I am trying to host a shiny app, and I was
trying to follow the discussion in this thread
(https://groups.google.com/forum/#!topic/shiny-discuss/cBrh2abDvAs)
but still haven’t been able to figure it out, so far I changed the
listening port from 3838 to 80 as recommended in the thread and also
tried to access the "/etc/httpd/conf/httpd.conf" folder as
shown in the thread, but it does not exist in my ubuntu.
My app runs fine locally and I can see it by typing http://146.155.169.145/Example/ in my browser, but when I try to access it from other computers I can’t. As stated above, I have a lot of experience in R and Shiny, but I do not know much about hosting.
My shiny-server.conf is the following:
# Instruct Shiny Server to run applications as the user "shiny"
run_as shiny;
# Define a server that listens on port 3838
server {
listen 80;
# Define a location at the base URL
location / {
# Host the directory of Shiny Apps stored in this directory
site_dir /srv/shiny-server;
# Log all Shiny output to files in this directory
log_dir /var/log/shiny-server;
# When a user visits the base URL rather than a particular application,
# an index of the applications available in this directory will be shown.
directory_index on;
}
}
and I am using ubuntu 16.04
Let me know if I can give you more information
Thanks
Derek