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

Re3gistry 2.6.0 and the name change of the server #457

Open
TeijoKal opened this issue Aug 22, 2024 · 3 comments
Open

Re3gistry 2.6.0 and the name change of the server #457

TeijoKal opened this issue Aug 22, 2024 · 3 comments

Comments

@TeijoKal
Copy link

So the question is where is it need to make changes if the name of the server is changing??

Our re3gistry server is now dev.luettelopalvelu.fi. And it will be changed to www.luettelopalvelu.fi

And data will be still in database with the old name of the server, Only the server name will be changing

@TeijoKal TeijoKal changed the title Re3gistry 2.6.0 ja palvelimen nimen muutos Re3gistry 2.6.0 and the name change of the server Aug 22, 2024
@arantzaetxebarria
Copy link
Collaborator

Dear @TeijoKal

If you're planning to leave the database with the old server name, we suggest that perhaps a server redirection rule might work.

@TeijoKal
Copy link
Author

The problem is that the URL:s should be the same as now in the production environment. So the urls used in database should be changed from dev.luettelopalvelu.fi to www.luettelopalvelu.fi.

Is it possible to change the used urls? Or should the whole application be installed again with the new url?

@arantzaetxebarria
Copy link
Collaborator

Dear @TeijoKal

A direct change in the database is something we do not recommend, since due to the complexity of the database, we cannot know if it is something that can work 100%.

Even so, you could do some tests with this sentence that we suggest and apply it in the tables that contain the URI base to see if the results are as expected.
UPDATE reg_itemclass
SET baseuri = CONCAT('www.', SUBSTRING(baseuri FROM 4))
WHERE baseuri LIKE 'dev.%';

Best regards

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