Giter VIP home page Giter VIP logo

shinyapps's Introduction

Directions for running shiny apps in the browser with shiny-server

The Shiny Server installer will automatically install a systemd service called shiny-server, which will cause the shiny-server program to be started and stopped automatically when the machine boots up and shuts down. The shiny-server service will also be launched automatically when the installer has successfully installed the program.

To start or stop the server manually, you can use the following commands.

sudo systemctl start shiny-server

sudo systemctl stop shiny-server

You can restart the server with:

sudo systemctl restart shiny-server

You can check the status of the shiny-server service using:

sudo systemctl status shiny-server

And finally, you can use the enable/disable commands to control whether Shiny Server should be run automatically at boot time:

sudo systemctl enable shiny-server

sudo systemctl disable shiny-server

To start the server, run the following commands, respectively.

sudo start shiny-server

or

sudo shiny-server

To start the server, run the following commands, respectively.

sudo stop shiny-server

2.7.3 Host Per-User Application Directories

To ensure that the shiny-server publicly hosts any Shiny-apps in the user's ~/ShinyApps dir for users who are members of the "shinyUsers" group;

run the following lines:

sudo groupadd shinyUsers sudo usermod -a -G shinyUsers drew

The Shiny-apps in the browser-enabled shiny-server are configured by the following file

/etc/shiny-server/shiny-server.conf

Here is an ecample config file


        # Define a server that listens on port 3838
	server {
		listen 3838;

	 location / {
		 user_dirs;
		 
		 # Define a location at the base URL

	 members_of shinyUsers;
    
		 #site_dir /srv/shiny-server;
		 #log_dir /var/log/shiny-server;

	  directory_index on;
    }
	  
# add user to the shinyUsers group so all shiny-apps in /home/$USER/ShinyApps/ will be available on this server at the URL http://server.com/$USER/ShinyApps. 

shinyapps's People

Contributors

ahalfpen727 avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.