Skip to content

Commit

Permalink
test cli passes
Browse files Browse the repository at this point in the history
  • Loading branch information
bburns committed Jul 4, 2024
1 parent e4101ec commit 5aa0c48
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions packages/cli/lib/cli.ts
Original file line number Diff line number Diff line change
Expand Up @@ -296,7 +296,8 @@ export function configWatch({ fullPath, debug = false }: { fullPath: string; deb
let child: ChildProcess | undefined;
process.on('SIGINT', () => {
if (child) {
const dockerDown = spawn('docker', ['compose', '-f', `${getNangoRootPath()}/docker/docker-compose.yaml`, '--project-directory', '.', 'down'], {
// const dockerDown = spawn('docker', ['compose', '-f', `${getNangoRootPath()}/docker/docker-compose.yaml`, '--project-directory', '.', 'down'], {
const dockerDown = spawn('docker', ['compose', '-f', path.join(getNangoRootPath(), 'docker/docker-compose.yaml'), '--project-directory', '.', 'down'], {
stdio: 'inherit'
});
dockerDown.on('exit', () => {
Expand All @@ -315,7 +316,8 @@ process.on('SIGINT', () => {
export const dockerRun = async (debug = false) => {
const cwd = process.cwd();

const args = ['compose', '-f', `${getNangoRootPath()}/docker/docker-compose.yaml`, '--project-directory', '.', 'up', '--build'];
// const args = ['compose', '-f', `${getNangoRootPath()}/docker/docker-compose.yaml`, '--project-directory', '.', 'up', '--build'];
const args = ['compose', '-f', path.join(getNangoRootPath(), 'docker/docker-compose.yaml'), '--project-directory', '.', 'up', '--build'];

if (debug) {
printDebug(`Running docker with args: ${args.join(' ')}`);
Expand Down

0 comments on commit 5aa0c48

Please sign in to comment.