Simple CLI deploy tool
Runs a express webserver on your server that listens to incoming cURL requests.
Simply copy your deploy token to your local project and create a config.json file.
//install twl npm package
npm i -g twl
//Add project
//twl add "my-project" "/var/www/my-project"
twl add -n [project-name] -p [project-dir]
//Start twl server
//twl start 4711
twl start -p [port]
//get token
twl -t
//Rollback to last deploy
//Added in 0.1.0
//twl rollback -n test
twl rollback -n [name]
//List projects
twl ls
//install twl npm package
npm i twl --save
//create config file
touch twl.config.json
//Deploy artifact
./node_modules/.bin/twl deploy -c "twl.config.json"
{
"token" : "your-token",
"name" : "project-name",
"url" : "http://myserver.com", //server location
"directory" : "/dist" //directory of files to create artifact from
}