Skip to content

Commit

Permalink
chore: enable ssg at heroku deployment
Browse files Browse the repository at this point in the history
  • Loading branch information
maartenbreddels committed Dec 30, 2022
1 parent 1b4a01e commit c1493b7
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
5 changes: 3 additions & 2 deletions Procfile
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
# see: https://devcenter.heroku.com/changelog-items/618
# which uvicorn picks up, unless we explicitly set --workers --1
# see https://www.uvicorn.org/deployment/
# we do not support multiple workers yet
# we also need to bind to 0.0.0.0 otherwise heroku cannot route to our server
web: solara run solara.website.pages --port=$PORT --no-open --host=0.0.0.0 --workers 1
# for playwright: run $ heroku buildpacks:set https://github.com/mxschmitt/heroku-playwright-buildpack --app solara-dem
# also add PLAYWRIGHT_BUILDPACK_BROWSERS chromium to your env vars in the Settings in heroku
web: (playwright install && solara run solara.website.pages --port=$PORT --no-open --host=0.0.0.0 --workers 1 --ssg)
4 changes: 3 additions & 1 deletion requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@ ipyvuetify
reacton
bqplot
plotly
.[server,documentation,ssg]
.[server,documentation]
./packages/solara-enterprise[ssg]
playwright
vega_datasets
altair

0 comments on commit c1493b7

Please # to comment.