Skip to content

Conversation

@jcheng5
Copy link
Collaborator

@jcheng5 jcheng5 commented Jul 6, 2023

Without this, shiny run --app-dir=foo app.py won't work even if foo/app.py exists and is a valid Shiny app. This is because the code that turns app.py into app:app for Uvicorn wasn't aware of --app-dir.

@jcheng5
Copy link
Collaborator Author

jcheng5 commented Jul 6, 2023

Beware: I don't believe this is an area where we have great (any?) automated tests right now.

@nealrichardson
Copy link
Collaborator

Works as expected on my machine.

Should we make a followup about adding tests for the CLI code paths? I don't think it would be that hard (famous last words).

@jcheng5
Copy link
Collaborator Author

jcheng5 commented Jul 6, 2023

Agreed that tests for this area don’t seem that hard.

Without this, `shiny run --app-dir=foo app.py` won't work even if
foo/app.py exists and is a valid Shiny app. This is because the
code that turns `app.py` into `app:app` for Uvicorn wasn't aware
of --app-dir.
@nealrichardson nealrichardson force-pushed the app-path-with-app-file branch from d71f466 to 2d82223 Compare July 13, 2023 13:14
@nealrichardson nealrichardson requested a review from wch July 13, 2023 13:14
Copy link
Collaborator

@nealrichardson nealrichardson left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Works on my machine.

I just rebased on main to hopefully fix CI.

@jcheng5 jcheng5 merged commit ef75c0e into main Jul 18, 2023
@jcheng5 jcheng5 deleted the app-path-with-app-file branch July 18, 2023 07:53
schloerke added a commit that referenced this pull request Jul 18, 2023
* main:
  Rename shiny/examples to shiny/api-examples (and X/examples to X/api-examples) (#627)
  Make --app-path work with app file argument (#598)
  Don't eval example code block
  Fix example code blocks (#626)
  Annotation export example (#584)
schloerke added a commit that referenced this pull request Jul 24, 2023
* main:
  Add E2E tests for accordion and autoresize (#601)
  Add card test (#622)
  Add sidebar test (#631)
  Make card fullscreen icon a tooltip (#632)
  Pull in changes from rstudio/bslib#697 and rstudio/bslib#699
  Changelog tweak. Followup to #629
  Add experimental tooltip methods and example apps (#629)
  Use `blib::bs_theme(5,"shiny")` for py-shiny theme (#624)
  Rename shiny/examples to shiny/api-examples (and X/examples to X/api-examples) (#627)
  Make --app-path work with app file argument (#598)
  Don't eval example code block
  Fix example code blocks (#626)
  Annotation export example (#584)
  Add todo list example (#603)
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

Successfully merging this pull request may close these issues.

3 participants