-
Notifications
You must be signed in to change notification settings - Fork 133
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Deploying to self-hosted Shiny Server #145
Comments
Hey @GregSutcliffe, Thanks for giving Deploying to Shiny Server should be pretty straightfoward if you did this with a standard application before. Right now there are two ways to do it: copy the full golem folder, or use the built package. With the first solution, the idea is to have the whole The So to sum up :
And this should do the trick. Second option:
Let me know if this works |
Thanks for the fast reply! So if I understand (1) correctly, that means I'm just getting my head around Shiny modules - as soon as I have a basic app running, I'll try the deploy and report back! EDIT: Update - my mistake, app.R is in the root dir already. I misread where it had ended up. Everything makes a lot more sense now :) |
It's probably worth mentioning that my non-Golem apps use |
So I have a vary basic app (one static plot in a module, one table in app_server/ui.R), and it works in RStudio, via When I use method (1) to deploy to my server (rsync the project, renv::restore the deps), and then go to the URL in my browser, I'm getting errors (the UI starts but then disconnects after drawing the I know this is likely something weird on my end, but do I need to do anything special for logging from a Golem app? |
Just had a try with method (2) - installed the built package tgz on my server and I'm seeing the same behaviour. The package works locally, but on the server it disconnects, and I cannot get it to log why. Any pointers welcome :) |
OK, I have the app working now - there was, of course, a typo in some of the startup code. There are logs coming from the reactive parts of the app (i.e things like " Having fixed that, I've re-tested both methods, and both work fine. I'll probably go with option (2) as I can push the package to a Git repo and use Thanks! |
I am facing problem to what mentioned above. I am using workflow 2) as generated by the function |
Hi Can you please show us : Your dockerfike And the |
Hi, it was very silly mistake. After taking dig into container-host port expose I figured it out. I did not mentioned option
and command to launch the container is This solved the problem. Thanks a lot. ========= EDIT======= It is worth mentioning that, the above setup does not attach packages which are under the
|
Thanks for your inputs :) This seems solved, closing now, feel free to reopen if needed! |
Hi there - new to Golem but enjoying the workflow :)
I'm looking for guidance on deploying a Golem-based Shiny app to a self-hosted Shiny server. As far as I can see in 03_deploy.R the functions are all aimed at RStudio hosting or Docker, so how would I go about deploying this to my Linux VM?
For contrast, in my non-Golem apps, I would just
rsync
the project over to/srv/shiny-server/apps/
and make sure the dependencies are available. What's the right approach for Golem? Do I need to write a minimalapp.R
which is similar to the one generated ingolem::add_shinyserver_file
and get Shiny to launch that (given that I will have installed my Golem package too)?Thanks!
The text was updated successfully, but these errors were encountered: