# ots-deploy-tools

> Gulp deployment utilities and task templates for OneTwoSee applications

Latest version **0.13.2** (published 2016-07-07) · ISC license · 0 weekly downloads

## Install

```sh
npm install ots-deploy-tools
pnpm add ots-deploy-tools
yarn add ots-deploy-tools
bun add ots-deploy-tools
```

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support; pre 1.0.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.13.2 |
| Published | 2016-07-07 |
| First published | 2015-06-10 |
| Weekly downloads | 0 |
| License | ISC |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 9 |
| Known vulnerabilities | 0 (+1 in 1 direct dependencies) |
| Install scripts | no |
| GitHub stars | 0 |
| Author | Frank Weindel |
| Maintainers | frank-weindel |

## Links

- npm: https://www.npmjs.com/package/ots-deploy-tools
- Repository: https://github.com/onetwosee/ots-deploy-tools
- Homepage: https://github.com/onetwosee/ots-deploy-tools#readme
- Issues: https://github.com/onetwosee/ots-deploy-tools/issues
- npm.io page: https://npm.io/package/ots-deploy-tools

## Dependencies (9)

- [when](https://npm.io/package/when.md) ^3.7.3
- [js-yaml](https://npm.io/package/js-yaml.md) ^3.6.1
- [pathval](https://npm.io/package/pathval.md) ^0.1.1
- [inquirer](https://npm.io/package/inquirer.md) ^0.8.5
- [gulp-util](https://npm.io/package/gulp-util.md) ^3.0.5
- [underscore](https://npm.io/package/underscore.md) ^1.8.3
- [rsyncwrapper](https://npm.io/package/rsyncwrapper.md) ^0.4.3
- [run-sequence](https://npm.io/package/run-sequence.md) ^1.1.0
- [gulp-pkgcloud-upload](https://npm.io/package/gulp-pkgcloud-upload.md) ^0.1.1

## Recent versions

- 0.13.2 (latest) — 2016-07-07
- 0.13.1 — 2016-07-07
- 0.13.0 — 2016-07-06
- 0.12.3 — 2015-12-02
- 0.12.2 — 2015-11-23
- 0.12.1 — 2015-08-12
- 0.12.0 — 2015-07-17
- 0.11.7 — 2015-06-26
- 0.11.5 — 2015-06-16
- 0.11.4 — 2015-06-15
- 0.11.3 — 2015-06-12
- 0.11.2 — 2015-06-12
- 0.11.1 — 2015-06-12
- 0.11.0 — 2015-06-11
- 0.10.2 — 2015-06-10
- … 2 more at https://npm.io/package/ots-deploy-tools/versions

## README

# ots-deploy-tools
Gulp deployment utilities and task templates for OneTwoSee applications

## Sample Files

### deploy-config.js
```javascript
module.exports = {
  staging: {
    appLocation: '/usr/local/ots/vi-redirector',
    symlinkLocation: '/var/www/vi-redirector',
    hostConnStr: 'root@staging-1',
    upstartName: 'ots-vi-redirector'
  }
}
```

### gulpfile.js
```javascript
var gulp = require('gulp');

var stagingDeployTools = require('ots-deploy-tools')(
  require('./deploy-config.js'),
  'staging',
  require('./package.json'),
  require('yargs').argv
);

/**
 * deploy-staging
 *
 * Deploys the entire application root to the staging server, excluding
 * the server environment.json file and a few unimportant files.
 */
gulp.task('deploy-staging', function() {
  return stagingDeployTools.templates.deployApp();
});

/**
 * push-staging-config
 *
 * Deploys the server environment file located at
 * ./server/environment.staging.json to the right place on
 * on the staging server and restarts the server.
 */
gulp.task('push-staging-config', function() {
  return stagingDeployTools.templates.pushConfig();
});

/**
 * pull-staging-config
 *
 * Pulls the current server environment.json file that is in use
 * by the staging server and saves it to:
 *   ./server/environment.staging.json
 */
gulp.task('pull-staging-config', function() {
  return stagingDeployTools.templates.pullConfig();
});
```

---
_Source: https://npm.io/package/ots-deploy-tools · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
