Socket
Socket
Sign inDemoInstall

ots-deploy-tools

Package Overview
Dependencies
Maintainers
1
Versions
17
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

ots-deploy-tools

Gulp deployment utilities and task templates for OneTwoSee applications


Version published
Weekly downloads
5
decreased by-77.27%
Maintainers
1
Weekly downloads
 
Created
Source

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

FAQs

Package last updated on 07 Jul 2016

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc