2.2.5 • Published 9 years ago

tomcat-watcher v2.2.5

Weekly downloads
2
License
ISC
Repository
github
Last release
9 years ago

Install

Install only npm global module

$ npm install -g tomcat-watcher

Configure

To configure your project run:

$ cd PATH_TO_PROJECT
$ watcher-conf

and answer a few questions

In version 2.0.0 add support SFTP Deploy

Bugs SFTP:

  • Don't create new folders on remote server
  • Don't remove files on remote server

ES6 Support (Beta)

To use this feature, you need to:

  • Allow check 'es6' extension in watcher-config.json
  • install babel-preset-es2015 in the project folder
    $ cd PATH_TO_PROJECT
    $ npm i babel-preset-es2015
If the ES6 file '.es6' is changed, it will be automatically compiled into ES5 '.js' file.

## Run

After configure will be created file:
 * watcher-config.json
 
```javascript
{
  "TOMCAT_HOST": "localhost:8084",
  "CONTEXT": "/test",
  "LOGIN": "sa",
  "PASS": "sa",
  "EXTENSIONS": "js,sql",
  "DIRECTORIES": "app",
  "SFTP": "true",
  "SFTP_HOST": "192.168.1.12",
  "SFTP_PORT": "22",
  "SFTP_USER": "root",
  "SFTP_PASS": "rootpass",
  "SFTP_PATH": "/var/test/"
}

If this file exists run:

$ cd PATH_TO_PROJECT
$ watcher

If you named config file specific:

Then you can run the command with parameter

$ cd PATH_TO_PROJECT
$ watcher my_conf_file.json
2.2.5

9 years ago

2.2.4

9 years ago

2.2.3

9 years ago

2.2.1

9 years ago

2.2.0

9 years ago

2.1.1

10 years ago

2.0.1

10 years ago

2.0.0

10 years ago

1.2.1

10 years ago

1.2.0

10 years ago

1.1.0

10 years ago

1.0.3

10 years ago

1.0.2

10 years ago

1.0.1

10 years ago

0.0.5

10 years ago

0.0.4

10 years ago

0.0.3

10 years ago

0.0.2

10 years ago

0.0.1

10 years ago