Drupal Multisite with Probo



Search Results

You can add --site-[anything] to the end of any build’s URL – where [anything] can be anything URL safe with no periods – and Probo will still route to the appropriate container. For example, if your $BUILD_ID is “abc-123” and your normal URL is https://abc-123.probo.build, you can add --site-foo to the end of the URL. The new URL, https://abc-123--site-foo.probo.build, will still pass you through to the exact same build. This effectively gives you a way to create subdomains for your builds.

With this in mind, you can add the necessary site entries in your sites.php file to route the appropriate Probo URLs to your site folders. For example, you might want to route $BUILD_ID--site-de.probo.build to your de site folder. In sites.php this would look like:

$sites['$BUILD_ID--site-de.probo.build'] = 'de';

You can define these entries in your .probo.yaml file:

  - name: Configure Multisite
    plugin: Script
    script: |
       cd $SRC_DIR/webroot/sites
       echo "\$sites['$BUILD_ID--site-de.probo.build'] = 'de';" >> sites.php

You also need to generate your own settings.php files for each site.

Get Started with Probo.CI

Want to Try Probo today?
Get Started for free.

Get a free trial with our starter plan or look over some of our more advanced plans and choose the best solution for your company or organization!

GET STARTED FREE