Skip to content

Forge dev loop fix #1

@davidbarna

Description

@davidbarna

Hi,
I just want to let you know that Forge has undocumented (hence unsupported) flags that may improve your dev loop.

DISABLE_TTY gets rid of the "the input device is not a TTY" issue.
FORGE_TUNNEL_MOUNT_DIRECTORIES allows consumers to add volumes to the docker image run by forge tunnel. So you can add the root node_modules folder as a volume.

I think the following command would improve the dev loop for your mono repo:

DISABLE_TTY=true FORGE_TUNNEL_MOUNT_DIRECTORIES=$(cd \"$(dirname \"../../../\")\"; pwd)/$(basename \"$1\")node_modules:/app/node_modules forge tunnel -d

There is no guarantee that those flags will be kept in the future. But at the moment it's working for me as expected.

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