Skip to content
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

Can't deploy to polished.tech (MacOS) #228

Open
capellett opened this issue Jul 18, 2024 · 0 comments
Open

Can't deploy to polished.tech (MacOS) #228

capellett opened this issue Jul 18, 2024 · 0 comments

Comments

@capellett
Copy link

I made a minimal app (source code below) which deploys fine on shinyapps.io: https://planperspective.shinyapps.io/login_only

I try to deploy to polished.tech like this (replace api_key = "my_api_key_here" with my Polished API key):

polished::deploy_app(app_name = "payment_only", api_key = "my_api_key_here")

I get this:

Creating app bundle... Done
Deploying App. Hang tight. This may take a while...
Your Shiny app will open in your default web browser once deployment is complete.
Deployment status can be found at https://dashboard.polished.tech
Polished API request failed
Status Code: 500
Error: SSL peer certificate or SSH remote key was not OK: [sysreqs.r-hub.io] SSL certificate problem: self-signed certificate

app.R

library(shiny)
library(shinyFeedback)
library(polished)

polished::polished_config(
  app_name = "login_only",
  api_key = "my_api_key_here",
  is_invite_required = FALSE,
  is_email_verification_required = FALSE,
  is_auth_required = TRUE)

server <- function(input, output, session) {
  shiny::observeEvent(input$sign_out, {
    polished::sign_out_from_shiny()
    session$reload() }) }

ui <- fluidPage(
  shinyFeedback::useShinyFeedback(),
  shiny::actionButton("sign_out", "Sign Out"))

shiny::shinyApp(
  ui = polished::secure_ui(ui),
  server = polished::secure_server(server))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant