-
-
Notifications
You must be signed in to change notification settings - Fork 3.6k
Remove old symlink when Domain is changed #3493
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
Comments
We should do two things:
The change should be immediate when users act, but it's nice to have something in the background doing cleanup. It also catches a number of cases the Views & Forms don't catch (eg. if we edit it in the Admin, CLI, ORM |
It looks like our symlink domain logic already accounts for deletions, we just aren't calling it: https://github.com/rtfd/readthedocs.org/blob/master/readthedocs/projects/tasks.py#L775-L801 |
I'm not really sure how the Taking a look at the code, it doesn't seem to be tought to allow the edit operation. It looks like more delete and create a new one. In this case, the Regarding the background task, what's the proper way to do this? How do we search for orphan domains?
Sounds good? |
To modify the Domain Form or view, we will need to modify the I see two possible solutions:
I think that 1) makes more sense after reading the code. |
I started getting random 404 at https://docs.pytest.org/en/latest/ and we found they have confifured
doc.pytest.org
as a their domain so, the new web server was failing on serving the files.At some point, they should have configured
docs.pytest.org
under RTD and then they changed it to justdoc
, otherwise RTD should know nothing about thedocs
domain in the old web servers.To fix this, once the Domain is changed we need to perform a cleanup of the old symlinks in the web servers. This can be done by a task that catches all the various symlink leftovers we have, and sync’s them.
The text was updated successfully, but these errors were encountered: