I am trying to launch serverless from launch.json with no luck (despite it working perfectly from command line). How do I launch this?
Error:
Attribute 'program' does not exist
From the VSCode command line in the project root this works perfectly:
sls deploy --config slsSite.yml
Heres my current launch config:
{
"type": "node",
"request": "launch",
"name": "deploy site",
"preLaunchTask": "buildsite", //ref tasks.json
"program": "${workspaceFolder}\\serverless",
"args": ["deploy", "--config slsSite.yml"]
}
When I change the program to the path to the node module:
"program":"${workspaceFolder}\\serverless_site\\node_modules\\serverless\\bin\\serverless
I get:
This command can only be run in a Serverless service directory. Make sure to reference a valid config file in the current working directory if you're using a custom config file
Then I tried (in addition to the program line above):
"args": ["deploy", "--config ${workspaceFolder}\\slsSite.yml"]
and got the same error.