Sublime Forum

How to launch build task in the background

#1

Hey folks,

I have a build system file created to launch a Node.js express app inside a linux terminal window. Since this is not an actual source build task but rather an application launch tool, I need it to be executed in the background and not wait for it to exit. The build results pane should not pop up and ‘Cancel Build’ not enabled. This way I can execute further build tasks (like unit tests) while the Node.js app is still running.

I looked everywhere but can’t seem to find a way to do this. Help would be greatly appreciated. Here is what I have thus far:

{
    "working_dir": "$project_path",
    "selector": "source.js",
    "linux":
    {
        "cmd": "gnome-terminal", "-x", "bash", "-i", "-c", "node app.js; echo -done-; read"]
    }
}
0 Likes