GithubHelp home page GithubHelp logo

Comments (3)

pieterseyns avatar pieterseyns commented on May 9, 2024 2

Thanks it is working now

from vizro.

maxschulz-COL avatar maxschulz-COL commented on May 9, 2024 1

Hey @pieterseyns ,

thank you for posting this question, much appreciated!

Have you checked our guide on the different run methods and deployments: https://vizro.readthedocs.io/en/stable/pages/user_guides/run/#deployment-of-vizro-app

It seems to me that you may want to do:

app = Vizro().build(dashboard)
server = app.dash.server

where dashboard could be you create_dashboard function.

Let us know if this did not work, and we can try further.

from vizro.

antonymilne avatar antonymilne commented on May 9, 2024

@pieterseyns by Heroic do you mean Heroku? If so then I can confirm this works well because I tried it out just yesterday πŸ™‚

Just to add to what @maxschulz-COL said, the basic things you need on Heroku are:

  1. Procfile with web: gunicorn app:server
  2. requirements.txt with vizro and gunicorn
  3. As per the above, put your app in app.py exposing the underlying Flask server by doing app = Vizro().build(dashboard); server = app.dash.server
  4. Custom assets go in assets folder and are picked up automatically
  5. That’s it! Everything works straight away. Just push to Heroku and it will deploy

So the deployment process is really identical to Dash, just the server object in Vizro is nested one level deeper in app.dash.server rather than app.server as it is in Dash. I recommend these articles on deploying Dash which give further guidance and common pitfalls on deploying to Heroku:

from vizro.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    πŸ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. πŸ“ŠπŸ“ˆπŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❀️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.