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

How to modify the downloaded image source mirror_ url #957

Closed
zhenzi0322 opened this issue Mar 8, 2023 · 4 comments
Closed

How to modify the downloaded image source mirror_ url #957

zhenzi0322 opened this issue Mar 8, 2023 · 4 comments

Comments

@zhenzi0322
Copy link

devpi index root/pypi mirror_url="https://pypi.tuna.tsinghua.edu.cn/simple"

Not effective

image

@fschulze
Copy link
Contributor

fschulze commented Mar 8, 2023

There is most likely old data from the previous URL in the database.

You should delete root/pypi and create it again with the new mirror_url.

@zhenzi0322
Copy link
Author

There is most likely old data from the previous URL in the database.

You should delete root/pypi and create it again with the new mirror_url.

I rebuilt a docker with new data

@zhenzi0322
Copy link
Author

There is most likely old data from the previous URL in the database.

You should delete root/pypi and create it again with the new mirror_url.

How to delete a database

@fschulze
Copy link
Contributor

fschulze commented Mar 9, 2023

You can delete root/pypi with devpi index --delete root/pypi.
Then you create it again with the new url devpi index -c type=mirror mirror_url=https://pypi.tuna.tsinghua.edu.cn/simple.

If you want to start from the beginning with an empty database from nothing, you can prevent the creation of root/pypi with the --no-root-pypi for devpi-init. Then you can use devpi index -c type=mirror mirror_url=https://pypi.tuna.tsinghua.edu.cn/simple as above.

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

No branches or pull requests

2 participants