New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

dy

Package Overview
Dependencies
Maintainers
1
Versions
4
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

dy

another deploy tool

  • 0.0.4
  • latest
  • npm
  • Socket score

Version published
Maintainers
1
Created
Source

DY

a simaple deploy tools inspired by mina

Useage

npm install dy -g

create your own dy config file

dy-init

read document and edit this config file

dy-init

to run your deploy commands

Folder structure

/var/www/test.com/     # The deploy_to path
 |-  releases/              # Holds releases, one subdir per release
 |   |- 1/
 |   |- 2/
 |   |- 3/
 |   '- ...
 |-  shared/                # Holds files shared between releases
 |   |- logs/               # Log files are usually stored here
 |   `- ...
 '-  current/               # A symlink to the current release in releases/

Document

set('appname', 'xxx')
set('username', 'web')
set('host', 'localhost')
set('port', 22)

set('deploy_folder', '/user/local/good/to/deploy')

task('setup', function(){
  queue('cd ${deploy_folder}')
  queue('pwd .')
})

//another task
task('deploy', function(){
  queue('pwd .')
  queue('pwd .')
})

task('stop', function(){
  queue('killall node')
})

//subtask inside
task('restart',function(){
  invoke('stop')
  invoke('deploy')
})

Default set

set('deploy_to', '/var/www/test.me')

//default settings
set('releases_path', 'releases')
set('shared_path', 'shared')
set('current_path', 'current')
set('lock_file', 'deploy.lock')
set('keep_releases', 5)

CLI

dy                    # run dy.js deploy task
dy sometask           # run dy.js 'sometask' task
dy -f xx.js deploy    # run xx.js deploy task
dy -f xx.js -v deploy # run xx.js deploy task and show detail

Options

  • -v / --verbose : show detail, default is off.
  • -f FILE / --file : use custom dy.js configuration.
  • -S / --simulate : output build scripts. TODO

Tasks

dy tasks : show all aviable tasks

Variablse

dy NODE_ENV=production : set NODE_ENV to production

FAQs

Package last updated on 28 Jul 2015

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