@@ -507,9 +507,16 @@ Function satis() {
507507 Write-Warning " Please modify ${APP_ROOT} /satis/satis.json"
508508 }
509509
510- docker run -- rm - it `
511- -- mount type= bind, src= ${APP_ROOT} / satis, target=/ build `
512- -- mount type= volume, src= lnmp_composer- cache- data, target=/ composer composer/ satis
510+ if ($env: USE_WSL2_DOCKER_COMPOSE -eq ' 1' ) {
511+ wsl - d $WSL2_DIST -- docker run -- rm - it `
512+ -- mount type= bind, src= ${APP_ROOT} / satis, target=/ build `
513+ -- mount type= volume, src= lnmp_composer- cache- data, target=/ composer composer/ satis
514+ }
515+ else {
516+ docker run -- rm - it `
517+ -- mount type= bind, src= ${APP_ROOT} / satis, target=/ build `
518+ -- mount type= volume, src= lnmp_composer- cache- data, target=/ composer composer/ satis
519+ }
513520}
514521
515522Function get_compose_options ($compose_files , $isBuild = 0 ) {
@@ -728,7 +735,12 @@ function _pcit_cp() {
728735 rm - r - force ${APP_ROOT} / .pcit
729736 # git clone --depth=1 https://github.com/pcit-ce/pcit ${APP_ROOT}/.pcit
730737 docker pull pcit/ pcit:frontend
731- docker run - it -- rm - v ${APP_ROOT} / .pcit/ public:/ var / www/ pcit/ public pcit/ pcit:frontend
738+ if ($env: USE_WSL2_DOCKER_COMPOSE -eq ' 1' ) {
739+ wsl - d $WSL2_DIST -- docker run - it -- rm - v ${APP_ROOT} / .pcit/ public:/ var / www/ pcit/ public pcit/ pcit:frontend
740+ }
741+ else {
742+ docker run - it -- rm - v ${APP_ROOT} / .pcit/ public:/ var / www/ pcit/ public pcit/ pcit:frontend
743+ }
732744}
733745
734746function _edit_hosts () {
0 commit comments