Change your site's domain name

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.

  1. Make sure your site's database and file system are backed up.
  2. In the site-options.conf file, update the domain name (and hostname if needed), then save the file.
    For example:
  3. 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 "y" or "N" to proceed. For more information, see the TeamForge script.

    TeamForge 17.4 (and later) installer expects the system locale to be LANG=en_US.UTF-8. TeamForge "provision" command fails otherwise.

  4. Go to the TeamForge scripts directory.
    • cd /opt/collabnet/teamforge/runtime/scripts/
  5. Run the script to change the domain in the database.
    • ./ > /tmp/domain_change_db.out 2>&1
  6. If your site has Review Board integrated, run the following commands:
    1. Start the TeamForge application services.
      • /opt/collabnet/teamforge/bin/teamforge start
    2. Update the install.conf file with the new domain name.
      • vi /opt/collabnet/RBInstaller-17.4.7/installer/install.conf
    3. Recreate the runtime on Review Board.
      • sudo python ./ -r
    4. Restart the TeamForge application services.
      • setenforce 1
      • /opt/collabnet/teamforge/bin/teamforge restart