0.1.5 • Published 7 years ago

twl v0.1.5

Weekly downloads
2
License
MIT
Repository
github
Last release
7 years ago

TWL Deploy

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.

Usage server

  //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

Usage client

  //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"

twl.config.json

{
  "token"     : "your-token",
  "name"      : "project-name",
  "url"       : "http://myserver.com", //server location
  "directory" : "/dist" //directory of files to create artifact from
}
0.1.5

7 years ago

0.1.4

7 years ago

0.1.3

7 years ago

0.1.2

7 years ago

0.1.1

7 years ago

0.1.0

7 years ago

0.0.5

7 years ago

0.0.4

7 years ago

0.0.3

7 years ago

0.0.2

7 years ago

0.0.1

7 years ago