Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Local dev build differs from the official dev build #43

Open
frafra opened this issue Mar 25, 2021 · 1 comment
Open

Local dev build differs from the official dev build #43

frafra opened this issue Mar 25, 2021 · 1 comment
Labels
bug Something isn't working

Comments

@frafra
Copy link

frafra commented Mar 25, 2021

pywebio/__version__.py from the git repository differs from the one made available from https://code.aliyun.com/wang0618/pywebio/repository/archive.zip even after following the instruction to generate the minified js file.

Workaround: add dev to __version__ or set cdn=False when calling start_server.

Environment Information

  • Python Version: Python 3.9.2
  • PyWebIO Version: 757e992
@frafra frafra added the bug Something isn't working label Mar 25, 2021
@wang0618
Copy link
Member

Thanks for the feedback, I forgot to put this situation in the js build document.

PyWebIO uses cdn by default for frontend resources, but only builds and uploads js to cdn when releasing a stable version. In dev version (the version string contains dev), PyWebIO will ingore cdn setting and always uses the local js file.

For local dev build, you need to set cdn=False to specify the use of local js files.

wang0618 added a commit that referenced this issue Mar 26, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants