GithubHelp home page GithubHelp logo

Comments (8)

bastianerh avatar bastianerh commented on June 13, 2024 1

For production deployment this flag should be enabled, we used the CDNs for Polyaxon CE deployments because lot of users try Polyaxon on very small instances first and loading all vendor libraries put a lot of pressure on the server and then they create tickets asking why it does not work.

We are in the process of finalizing Polyaxon v2 and we might just flip the flag to make CDNs opt-in instead of opt-out.

All ui flags are documented here: https://polyaxon.com/docs/setup/platform/common-reference/#ui

from polyaxon.

bastianerh avatar bastianerh commented on June 13, 2024

You can redeploy/upgrade your installation to use local packages instead of cdns with:

...
ui:
  offline: true
...

from polyaxon.

arek-widelab avatar arek-widelab commented on June 13, 2024

What about resources like https://cdn.plot.ly/usa_110m.json?
Is it possible to replace that path as well using plotly api?

EDIT:
Yes, it is but it's rather a workaround for CDN down, not production ready solution.

Using plotly.js in config there is a field topojsonURL which can be overwritten by:
topojsonURL:
"https://raw.githubusercontent.com/plotly/plotly.js/master/dist/topojson/",

from polyaxon.

ajuric avatar ajuric commented on June 13, 2024

You can redeploy/upgrade your installation to use local packages instead of cdns with:

...
ui:
  offline: true
...

@bastianerh Does this means Polyaxon web will not be deployed/available?

from polyaxon.

bastianerh avatar bastianerh commented on June 13, 2024

@ajuric The UI will be available, the only difference is that it will serve all js packages and vendors from Polyaxon server instead of the CDNs.

from polyaxon.

ajuric avatar ajuric commented on June 13, 2024

@bastianerh Cool, thank you a lot! :)

Is there any reason then why not always setting the "offline: true", to avoid problems like these? Asking because I handle our PLX deployment and would like to minimize my involvement there, but also wouldn't like to miss all the "good features" or don't "good practices" for deployment?

from polyaxon.

ajuric avatar ajuric commented on June 13, 2024

I see, thanks! 👍

from polyaxon.

Syakyr avatar Syakyr commented on June 13, 2024

Since the CDNs are back up, I'll close the issue. Hopefully if the CDNs are down again, this issue can be used as a reference.

from polyaxon.

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.