Publish on shiny server automatically

Hello everyone, I'm new here!
I'm wondering if there is a way to launch my shiny app to shiny server without using the publish button.
Is there a publish command?

Thank you!


Thank you.
Now I have another problem. It seems that if I use Publish it works fine.
But when trying to deploy I get an error:

Error in lint(appDir, appFiles, appPrimaryDoc) :
Cancelling deployment: invalid project layout.
The project should have one of the following layouts:

  1. 'shiny.R' and 'ui.R' in the application base directory,
  2. 'shiny.R' and 'www/index.html' in the application base directory,
  3. 'app.R' or a single-file Shiny .R file,
  4. An R Markdown (.Rmd) document,
  5. A static HTML (.html) or PDF (.pdf) document.
  6. 'plumber.R' API description .R file
  7. 'entrypoint.R' plumber startup script
  8. A tensorflow saved model

When I create the project I did a new shiny app --> single File

could you succesfully publish the shinyapp snippet in the same way (as a single file Shiny .R file ?


ui <- fluidPage(

server <- function(input, output, session) {

shinyApp(ui, server)

Sorry for the deleay. Yes I could. I don't know how to fix it. Maybe creating two separete files? ui and server?

This topic was automatically closed 21 days after the last reply. New replies are no longer allowed.