File tree Expand file tree Collapse file tree 2 files changed +7
-1
lines changed Expand file tree Collapse file tree 2 files changed +7
-1
lines changed Original file line number Diff line number Diff line change @@ -68,6 +68,13 @@ private function init_ee() {
6868 $ check_requirements = ( [ 'site ' , 'cmd-dump ' ] === $ this ->arguments ) ? false : $ check_requirements ;
6969 }
7070
71+ $ nginx_proxy = 'services_global-nginx-proxy_1 ' ;
72+ $ launch = EE ::launch ( sprintf ( 'cd %s && docker ps -q --no-trunc | grep $(docker-compose ps -q global-nginx-proxy) ' , EE_SERVICE_DIR ) );
73+ if ( 0 === $ launch ->return_code ) {
74+ $ nginx_proxy = trim ( $ launch ->stdout );
75+ }
76+ define ( 'EE_PROXY_TYPE ' , $ nginx_proxy );
77+
7178 if ( $ check_requirements ) {
7279 $ this ->check_requirements ();
7380 $ this ->maybe_trigger_migration ();
Original file line number Diff line number Diff line change 1414
1515define ( 'EE_BACKUP_DIR ' , EE_ROOT_DIR . '/.backup ' );
1616define ( 'EE_SERVICE_DIR ' , EE_ROOT_DIR . '/services ' );
17- define ( 'EE_PROXY_TYPE ' , 'services_global-nginx-proxy_1 ' );
1817
1918if ( file_exists ( EE_ROOT . '/vendor/autoload.php ' ) ) {
2019 define ( 'EE_VENDOR_DIR ' , EE_ROOT . '/vendor ' );
You can’t perform that action at this time.
0 commit comments