Skip to content

Commit

Permalink
Merge pull request #90 from clpetersonucf/issue/89-docker-production-…
Browse files Browse the repository at this point in the history
…container-change

updates docker container search string
  • Loading branch information
clpetersonucf authored Jun 3, 2021
2 parents 173ba70 + 521060f commit c6ed727
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion express.js
Original file line number Diff line number Diff line change
Expand Up @@ -465,7 +465,7 @@ module.exports = (app) => {
// 2. filter for materia-web image and named xxxx_phpfpm_1 name
// 3. pick the first line
// 4. pick the container name
let targetImage = execSync('docker ps -a --format "{{.Image}} {{.Names}}" | grep -e ".*materia-phpfpm:.* materia-phpfpm" | head -n 1 | cut -d" " -f2');
let targetImage = execSync('docker ps -a --format "{{.Image}} {{.Names}}" | grep -e ".*materia:.* docker_app_.*" | head -n 1 | cut -d" " -f2');
if(!targetImage){
throw "MWDK Couldn't find a docker container using a 'materia-phpfpm' image named 'phpfpm'."
}
Expand Down

0 comments on commit c6ed727

Please sign in to comment.