DevShop
component/docs
component/docs
  • Introduction
  • Introduction
    • About DevShop
    • Roadmap
    • Tour
    • How it works
  • Install & Upgrade
    • Installing DevShop
    • Upgrading DevShop
    • Changing Hostname
    • System Configuration with Ansible
    • Setup Examples
  • Using DevShop
    • Deployment Hooks
    • Migrating sites into DevShop
    • Customizing settings.php
    • Automated Testing
    • Acquia Cloud Hooks Integration
    • Remote Servers
    • Going Live
    • Scaling
    • Deleting Projects & Environments
    • Using SSL
    • Password Protection
    • Troubleshooting
  • Developing DevShop
    • Developing DevShop
  • Learning DevShop
    • The Complete DevShop Training
  • Contributing
    • How to contribute to DevShop
    • Release Process
Powered by GitBook
On this page
  1. Install & Upgrade

Changing Hostname

PreviousUpgrading DevShopNextSystem Configuration with Ansible

Last updated 5 years ago

Sometimes you need to change your devshop's hostname.

Here's the process.

  1. Rename your server in your cloud provider. Not technically required, but it will reduce confusion.

  2. Add a DNS record for your new name to point to your server's IP.

  3. Edit /etc/hostname and enter your new full hostname.

  4. Edit /etc/hosts and change the old hostname to the new one.

  5. In your devmaster front end, find the site node for your front-end, and add the new domain as an alias. Set the aliases to redirect to your desired URL.

  6. At this point you should be able to visit and access the devshop front-end.

  7. In your devmaster front-end, all old projects will retain their old base url. You can edit the database table {hosting_devshop_projects} to manually update the base URL so that new environments will be created under the new hostname.

  8. Reboot the server.

http://yournewhostname/