Skip to content

Commit 536e58b

Browse files
committed
fix: mdep bindings
1 parent b9e61f6 commit 536e58b

1 file changed

Lines changed: 6 additions & 2 deletions

File tree

bin/cmds/test_cmds/auto-compose.js

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,7 @@ function tester(compose, argv) {
8989
NODE_ENV: 'test',
9090
},
9191
ports: [],
92-
command: argv.http ? 'node /deploy/bin/runner.js' : 'tail -f /dev/null',
92+
command: 'tail -f /dev/null',
9393
}, argv.extras.tester);
9494
const workingDir = testerConfig.working_dir;
9595
const workingVolume = `\${PWD}:${workingDir}`;
@@ -100,7 +100,11 @@ function tester(compose, argv) {
100100
);
101101

102102
if (argv.http) {
103-
volumes.push(`${resolve(__dirname, '../../..')}:/deploy:cached`);
103+
volumes.push(`${resolve(__dirname, '../../..')}:/deploy`);
104+
volumes.push(`${resolve(__dirname, '../../..')}:/${workingDir}/node_modules/@makeomatic/deploy`);
105+
if (testerConfig.command === 'tail -f /dev/null') {
106+
testerConfig.command = `node ${workingDir}/node_modules/@makeomatic/deploy/bin/runner.js`;
107+
}
104108
}
105109

106110
testerConfig.volumes = volumes;

0 commit comments

Comments
 (0)