Skip to content

Commit 521444e

Browse files
committed
Case 27657; Pick values from yml
1 parent 7f9f66b commit 521444e

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

src/Command/SiteSettingsLocalCommand.php

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -86,14 +86,17 @@ protected function execute(InputInterface $input, OutputInterface $output) {
8686
// Load the file.
8787
$content = $this->fileGetContents($file);
8888

89+
$host= $this->config['host'];
90+
$cdn = $this->config['cdn'];
91+
8992
// Append configuration.
9093
$content .= <<<EOF
9194
9295
// Set Stage file proxy origin.
93-
\$config['stage_file_proxy.settings']['origin'] = 'cdn.subscriptions.dennis.co.uk';
96+
\$config['stage_file_proxy.settings']['origin'] = '$cdn';
9497
9598
// Change CDN domain to local.
96-
\$config['cdn.settings']['mapping']['domain'] = 'subscriptions.vm8.didev.co.uk';
99+
\$config['cdn.settings']['mapping']['domain'] = '$host';
97100
98101
EOF;
99102

0 commit comments

Comments
 (0)