Skip to content

working_dir doesn't work #25

@MrFoxPro

Description

@MrFoxPro
process-compose.dev = {
  debug = true;
  tui = false;
  settings = {
    processes = {
      web = {
        command = "echo $PWD";
        working_dir = with {p = toString ./api;}; builtins.trace p p;
      };
    };
  };
};

output:

processes:
  web:
    command: echo $PWD
    working_dir: /nix/store/3cb5iy8l8hffi5cpmxx3dm2sx7gfk4a1-source/api
shell:
  shell_argument: -c
  shell_command: /nix/store/mh1c3p23xby3chc3q0c0g78fa1nn65yw-bash-5.2-p15/bin/bash
[web_1  ] /home/foxpro/craft/sferadel/next

It doesn't work even with under $HOME:

web = {
  command = "bash -c \"echo $PWD; (cd /home/foxpro/craft/sferadel/next/api; echo $PWD)\"";
  working_dir = "/home/foxpro/craft/sferadel/next/api";
};
processes:
  web:
    command: bash -c "echo $PWD; (cd /home/foxpro/craft/sferadel/next/api; echo $PWD)"
    working_dir: /home/foxpro/craft/sferadel/next/api
shell:
  shell_argument: -c
  shell_command: /nix/store/mh1c3p23xby3chc3q0c0g78fa1nn65yw-bash-5.2-p15/bin/bash
[web_1  ] /home/foxpro/craft/sferadel/next
[web_1  ] /home/foxpro/craft/sferadel/next

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions