
Stage File Proxy is a Drupal module that sends requests to your development environment’s files directory to the production environment and making a copy of the production file in your development site. This module saves time and most importantly - disc space. This module should be used for development environments only.
Even though we are using the Drupal plugin we can still use the shell plugin to add special configuration steps. This does, of course, require that Stage File Proxy is included in the modules installed with your Drupal site.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 | assets: - dev.sql.gz steps: - name: Drupal Setup With Stage File Proxy plugin: Drupal database: dev.sql.gz databaseGzipped: true databaseUpdates: true settingsAppend: | $config['stage_file_proxy.settings'] = [ 'hotlink' => 0, 'origin' => 'https://www.example.com', 'origin_dir' => 'sites/default/files', 'use_imagecache_root' => 1, ]; - name: Enable stage_file_proxy command: 'drush -r /var/www/html pm:enable stage_file_proxy -y' |
This example enables Stage File Proxy and sets the point of origin to http://www.example.com.
The settings located at ‘admin/config/system/stage_file_proxy’ will now match what was set in the .probo.yaml file.


When you sign up for a Probo.CI registration code, you will get a two week trial of the plan of your choosing. For more information on how to get started, click here .
LEARN MORE ABOUT PROBO.CI'S PRICING