VSCode - Deploy with tasks.json?

I have recently made the switch to VSCode and it has been a good move.

I was toying with the idea of automating deployment using VSCode ‘tasks’.

However, following the various examples on the website here has proved to be fruitless.

Has anyone managed to achieve this?

my code so far:

{
    "version": "0.1.0",
    "tasks": [
        {
            "taskName": "SET",
            "command": "SET",
            "args": ["DEPLOY_HOSTNAME=us-east-1.galaxy-deploy.meteor.com"],
            "isShellCommand": true,
            "showOutput": "always"
            
            
        },
        {
            "taskName": "meteor deploy",
            "command": "meteor deploy --settings settings.json <MY DOMAIN>",
            //"args": ["--settings settings.json <MY DOMAIN>"],  // => not working either
            "isShellCommand": true,
            "showOutput": "always"
        }
    ]
}

I have a feeling that the commands are not running in a meteor directory - any help appreciated.

To find out if it’s running in the directory, can’t you just make one task that does the pwd command and look at the output?

1 Like