ots-deploy-tools
Gulp deployment utilities and task templates for OneTwoSee applications
Last updated 3 years ago by frank-weindel .
ISC · Repository · Bugs · Original npm · Tarball · package.json
$ cnpm install ots-deploy-tools 
SYNC missed versions from official npm registry.

ots-deploy-tools

Gulp deployment utilities and task templates for OneTwoSee applications

Sample Files

deploy-config.js

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

gulpfile.js

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();
});

Current Tags

  • 0.13.2                                ...           latest (3 years ago)

17 Versions

  • 0.13.2                                ...           3 years ago
  • 0.13.1                                ...           3 years ago
  • 0.13.0                                ...           3 years ago
  • 0.12.3                                ...           4 years ago
  • 0.12.2                                ...           4 years ago
  • 0.12.1                                ...           4 years ago
  • 0.12.0                                ...           4 years ago
  • 0.11.7                                ...           4 years ago
  • 0.11.5                                ...           4 years ago
  • 0.11.4                                ...           4 years ago
  • 0.11.3                                ...           4 years ago
  • 0.11.2                                ...           4 years ago
  • 0.11.1                                ...           4 years ago
  • 0.11.0                                ...           4 years ago
  • 0.10.2                                ...           4 years ago
  • 0.10.1                                ...           4 years ago
  • 0.10.0                                ...           4 years ago
Maintainers (1)
Downloads
Today 0
This Week 0
This Month 1
Last Day 0
Last Week 1
Last Month 17
Dependencies (9)
Dev Dependencies (0)
None
Dependents (0)
None

Copyright 2014 - 2016 © taobao.org |