To change the domain name of your site, you must change the name in
the database
and
any integrated applications such as the
Review
Board. TeamForge provides a script for each of these.
-
Make sure your site's database and file system are backed up.
-
In the site-options.conf file, update the domain name (and
hostname if needed), then save the file.
DOMAIN_<Host_Name>=<Domain_Name>
JAMES_POSTMASTER_EMAIL=root@<Domain_Name>
JAMES_MTA_HOST=<Domain_Name>
For example:
DOMAIN_mybox.supervillain.net=www.smileyface.com
JAMES_POSTMASTER_EMAIL=root@www.smileyface.com
JAMES_MTA_HOST=www.smileyface.com
-
Deploy
services.
- /opt/collabnet/teamforge/bin/teamforge
provision
The "provision" command prompts for response before it bootstraps or migrates
data during TeamForge installation and upgrade respectively. Enter "Yes" or
"No" to proceed. For more information, see The teamforge script.
-
Go to the TeamForge scripts directory.
- cd /opt/collabnet/teamforge/runtime/scripts/
-
Run the script to change the domain in the database.
-
./domain_change_db.py --old=www.myoldsitename.net
--new=www.mynewsitename.net > /tmp/domain_change_db.out
2>&1
-
If your site has Review Board integrated, run the following commands:
-
Start the TeamForge
application services.
- /opt/collabnet/teamforge/bin/teamforge
start
-
Update the install.conf file with the new domain
name.
- vi
/opt/collabnet/RBInstaller-16.10.4/installer/install.conf
-
Recreate the runtime on Review Board.
- sudo python ./install.py -r
-
Restart the TeamForge
application services.
- /opt/collabnet/teamforge/bin/teamforge
restart