Closed leonlan closed 3 months ago
It’s a bit more hassle to deploy with shiny live. I think it’s easier to deploy from DO. The cronjobs I can migrate to a Github repository.
I'm trying to deploy with shinylive now. This seems to work fine.
rsconnect-python
rsconnect add --account <ACCOUNT> --name <NAME> --token <TOKEN> --secret <SECRET>
poetry run rsconnect deploy shiny dashboard/ --name leonlan --title tour-du-mont-blanc1
requirements.txt
file.This now works and is live at https://leonlan.shinyapps.io/tour-du-mont-blanc/!
OK I think I broke shinyapps. I can no longer deploy 😂
❯ rsconnect deploy shiny dashboard/ --name leonlan --title tmb
Validating server... [OK]
Validating app mode... [OK]
Making bundle ... [OK]
Deploying bundle ... [ERROR]: shinyapps.io reported an error (calling /v1/applications/11368541): Not Found
Error: shinyapps.io reported an error (calling /v1/applications/11368541): Not Found
I deleted too many servers I think.
poetry run rsconnect deploy shiny dashboard/ --name leonlan --title dashboard --new
With --new
a new deployment is forced that works. Cool. It's now available at https://leonlan.shinyapps.io/dashboard/.
Shinyapps is not sustainable on the long term because it's free plan only allows for 25 hour active hours, and scaling to 100 active hours costs 13$/month. But it's nice to have during development.
Specifically, this example is relevant: https://github.com/wch/retirement-simulation-dashboard/
It will be updated more in the future