File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -114,7 +114,7 @@ public function enable( $args, $assoc_args ) {
114114
115115 chdir ( $ this ->site_data ->site_fs_path );
116116
117- $ launch = EE ::launch ( ' docker-compose config --services ' );
117+ $ launch = EE ::launch ( \ EE_DOCKER :: docker_compose_with_custom () . ' config --services ' );
118118 $ services = explode ( PHP_EOL , trim ( $ launch ->stdout ) );
119119 $ min_req_services = [ 'nginx ' , 'php ' ];
120120
@@ -135,7 +135,7 @@ public function enable( $args, $assoc_args ) {
135135 $ docker_compose_admin = EE \Utils \mustache_render ( ADMIN_TEMPLATE_ROOT . '/docker-compose-admin.mustache ' , $ docker_compose_data );
136136 $ this ->fs ->dumpFile ( $ this ->site_data ->site_fs_path . '/docker-compose-admin.yml ' , $ docker_compose_admin );
137137
138- if ( EE ::exec ( 'docker-compose -f docker-compose .yml -f docker-compose-admin.yml up -d nginx ' ) ) {
138+ if ( EE ::exec ( \ EE_DOCKER :: docker_compose_with_custom ( [ 'docker-compose-admin .yml ' ] ) . ' up -d nginx ' ) ) {
139139 EE ::success ( sprintf ( 'admin-tools enabled for %s site. ' , $ this ->site_data ->site_url ) );
140140 $ this ->site_data ->admin_tools = 1 ;
141141 $ this ->site_data ->save ();
You can’t perform that action at this time.
0 commit comments