We have a need to change the OS level hostname of the server where our bitbucket was installed ( say from serverX to clientX) . what changes needs to be done on the bitbucket server side. Our installation uses postgresql databases on same server as the bitbucket server.
Check the bitbucket.properties file - that has the database connection, which you may need to change if you've used a host name in there instead of localhost
Then change the "base url" for in server settings, if you are using the hostname directly.
I have checked and my database connection properties is set to local host.
So, once we change the OS level server hostname, the only thing that need to be change is the "base url" in server settings?
I am wondering if there is any hostname hard-coded anywhere in the application directory structure or the underlying database.
Thanks
Ade
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Nope. Just the base url.
It's never hard-coded because the developers cannot possibly know where you are going to install it. I suspect my understanding of "hard coded" is different to yours. To me, it means "there is code that says X, that gets compiled and can't be changed without hacking the executables". I think you might mean "config that gets decided at install time and does not change afterwards" - Atlassian applications don't do that, they accept setup stuff, but try to keep it in one place and allow you to change it later, which is a good thing. The base url is very important to Atlassian applications, but you only have to change it in one place.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Thank you Nic!. I have implemented the change and it worked.
Yes, you are right, by hard-coded, I meant "that it was probably set during the install time and stored in a config file somewhere withing the application structure.
This design is very flexible...that is awsome!/
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.