What I have:
{
"cmd": ["git add . && git commit -m 'deploy' && git push && cap deploy"],
"working_dir": "${project_path:${folder}}"
}
This command works in the terminal but not via Ctrl+B in Sublime Text 2.
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
The
cmdentry expects an array of each token in the the command instead of the entire command string. It’s better explained by an example. In your case:However, a better approach is to create a separate script
deploy.shthat performs all these tasks for you, then call that script for your sublime build file.deploy.sh:
deploy.sublime_build:
sublime build system documentation