Missed Team ’24? Catch up on announcements here.

×
Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

How to change the hostname of the server where our bitbucket is installed,

Adelani Adeleye January 19, 2018

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.

1 answer

1 accepted

0 votes
Answer accepted
Nic Brough -Adaptavist-
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
January 19, 2018

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.

Adelani Adeleye January 19, 2018

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

Nic Brough -Adaptavist-
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
January 19, 2018

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.

Adelani Adeleye January 23, 2018

 

 

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!/

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events