Skip to content

Commit fc1909f

Browse files
authored
Merge branch 'develop' into convert/old-args-to-new
2 parents 18a2f42 + f88cdb0 commit fc1909f

File tree

2 files changed

+2
-11
lines changed

2 files changed

+2
-11
lines changed

src/helper/site-utils.php

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -205,15 +205,6 @@ function create_site_root( $site_fs_path, $site_url ) {
205205
$fs->chown( $site_fs_path, $terminal_username );
206206
}
207207

208-
/**
209-
* Reloads configuration of global-proxy container
210-
*
211-
* @return bool
212-
*/
213-
function reload_proxy_configuration() {
214-
return EE::exec( sprintf( 'docker exec %s sh -c "/app/docker-entrypoint.sh /usr/local/bin/docker-gen /app/nginx.tmpl /etc/nginx/conf.d/default.conf; /usr/sbin/nginx -s reload"', EE_PROXY_TYPE ) );
215-
}
216-
217208
/**
218209
* Adds www to non-www redirection to site
219210
*

src/site-type/html.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -217,12 +217,12 @@ private function create_site() {
217217
* when certs are being requested and http+https redirection after we have certs.
218218
*/
219219
\EE\Site\Utils\add_site_redirects( $this->site_data['site_url'], false, 'inherit' === $this->site_data['site_ssl'] );
220-
\EE\Site\Utils\reload_proxy_configuration();
220+
\EE\Site\Utils\reload_global_nginx_proxy();
221221

222222
if ( $this->site_data['site_ssl'] ) {
223223
$this->init_ssl( $this->site_data['site_url'], $this->site_data['site_fs_path'], $this->site_data['site_ssl'], $this->site_data['site_ssl_wildcard'] );
224224
\EE\Site\Utils\add_site_redirects( $this->site_data['site_url'], true, 'inherit' === $this->site_data['site_ssl'] );
225-
\EE\Site\Utils\reload_proxy_configuration();
225+
\EE\Site\Utils\reload_global_nginx_proxy();
226226
}
227227
} catch ( \Exception $e ) {
228228
$this->catch_clean( $e );

0 commit comments

Comments
 (0)