Nerdiest Political Manifesto

twl

0.1.5 • Public • Published

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 -[project-name] -[project-dir]
 
  //Start twl server
  //twl start 4711
  twl start -[port]
 
  //get token
  twl -t
 
  //Rollback to last deploy
  //Added in 0.1.0
  //twl rollback -n test
  twl rollback -[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 -"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
}

Keywords

none

install

npm i twl

Downloadsweekly downloads

5

version

0.1.5

license

MIT

homepage

github.com

repository

Gitgithub

last publish

collaborators

  • avatar
Report a vulnerability