Download init.sh from Geoeasy/rchat: direct link, hf CLI and curl.
- Browser
- Download file 377 Bytes
-
https://huggingface.co/spaces/Geoeasy/rchat/resolve/main/init.sh
- Command line
-
hf download hf://spaces/Geoeasy/rchat/init.sh
-
curl -L -o init.sh https://huggingface.co/spaces/Geoeasy/rchat/resolve/main/init.sh
377 Bytes
| set -Eeuo pipefail | |
| PORT_TO_USE="${PORT:-7860}" | |
| # escreve config do Shiny Server usando a porta do Space | |
| cat > /etc/shiny-server/shiny-server.conf <<CONF | |
| run_as shiny; | |
| server { | |
| listen ${PORT_TO_USE}; | |
| location / { | |
| site_dir /srv/shiny-server; | |
| log_dir /var/log/shiny-server; | |
| directory_index on; | |
| } | |
| } | |
| CONF | |
| exec /usr/bin/shiny-server | |